- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试将 AWS Cloudwatch 代理配置为在 AWS 之外的 vanilla Ubuntu 18.04 上运行。每次我运行它,我都会收到这个错误:
# /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m onPremise -c "file:/path/to/cloudwatch/cloudwatch.json" -s
/opt/aws/amazon-cloudwatch-agent/bin/config-downloader --output-dir /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d --download-source file:/path/to/cloudwatch/cloudwatch.json --mode onPrem --config /opt/aws/amazon-cloudwatch-agent/etc/common-config.toml --multi-config default
Got Home directory: /root
I! Set home dir Linux: /root
Unable to determine aws-region.
Please make sure the credentials and region set correctly on your hosts.
Refer to http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
Fail to fetch the config!
strace -f
下运行程序显示它正在尝试读取
/root/.aws/credentials
然后退出。根据指南,这里是
/root/.aws/credentials
的内容:
[AmazonCloudWatchAgent]
aws_access_key_id = key
aws_secret_access_key = secret
region = us-west-2
aws configure get region
,它能够正确检索区域。但是,Cloudwatch 代理无法读取它。这是
common-config.toml
的内容(每个 strace 也可以读取)。
## Configuration for shared credential.
## Default credential strategy will be used if it is absent here:
## Instance role is used for EC2 case by default.
## AmazonCloudWatchAgent profile is used for onPremise case by default.
[credentials]
shared_credential_profile = "AmazonCloudWatchAgent"
shared_credential_file = "/root/.aws/credentials"
## Configuration for proxy.
## System-wide environment-variable will be read if it is absent here.
## i.e. HTTP_PROXY/http_proxy; HTTPS_PROXY/https_proxy; NO_PROXY/no_proxy
## Note: system-wide environment-variable is not accessible when using ssm run-command.
## Absent in both here and environment-variable means no proxy will be used.
# [proxy]
# http_proxy = "{http_url}"
# https_proxy = "{https_url}"
# no_proxy = "{domain}"
region
(和所有值)在双引号中的配置中,每 https://forums.aws.amazon.com/thread.jspa?threadID=291589 .这并没有什么不同。 [AmazonCloudWatchAgent]
至 [profile AmazonCloudWatchAgent]
上面的所有地方和所有排列(没有区别)[default]
所有配置文件中的部分(没有区别)config-downloader
直接编程,设置AWS_REGION等(同样的错误)sudo
调用程序而不是在没有 sudo
的情况下以 root 用户身份调用程序. 最佳答案
aws 配置默认为 C:\Users\Administrator,而不是您安装 CloudWatch 代理的用户。因此,您可能需要将/.aws/文件夹移动到 CLoudWatch 用户。或者……更直接:
aws configure --profile AmazonCloudWatchAgent
common-config.toml
指定区域如此处所述:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/install-CloudWatch-Agent-commandline-fleet.html#CloudWatch-Agent-profile-instance-first
On a server running Windows Server, this file is in the C:\ProgramData\Amazon\AmazonCloudWatchAgent directory. The default common-config.toml is as follows:
# This common-config is used to configure items used for both ssm and cloudwatch access
## Configuration for shared credential.
## Default credential strategy will be used if it is absent here:
## Instance role is used for EC2 case by default.
## AmazonCloudWatchAgent profile is used for onPremise case by default.
# [credentials]
# shared_credential_profile = "{profile_name}"
# shared_credential_file= "{file_name}"
## Configuration for proxy.
## System-wide environment-variable will be read if it is absent here.
## i.e. HTTP_PROXY/http_proxy; HTTPS_PROXY/https_proxy; NO_PROXY/no_proxy
## Note: system-wide environment-variable is not accessible when using ssm run-command.
## Absent in both here and environment-variable means no proxy will be used.
# [proxy]
# http_proxy = "{http_url}"
# https_proxy = "{https_url}"
# no_proxy = "{domain}"
关于amazon-web-services - "Unable to determine aws-region"运行本地 Cloudwatch 代理时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60835513/
我正在运行一个带有两个 HBase 0.94.7 区域服务器的小型集群。我发现区域服务器上的负载请求非常不平衡。从网络用户界面,我得到: Region1: numberOfOnlineRegions
我在 Backbone.Marionette 中有一个非常复杂(?)的布局,其中一些区域放置在 MainRegion 中。所有这些都是 CollectionView 的一部分,因此无法通过 var 直
我正在从事这样一个项目,其中应用程序执行以下操作: 用户选择一个半径(10 米到 1000 米),然后按“Go”按钮转到下一个 viewController 这里的应用程序抓取用户当前位置,并根据当前
我使用一个区域和两个 View 。我有一个 ComboBox,让用户可以选择区域中的 View 。 我有两个问题: 第一个问题是: _regionManager.Regions.Add("MyRegi
enter image description here 我正在按照MVVM模式使用WPF开发Prism Sample应用程序,但是当它通过以下代码时,它在我的应用程序中存在一些问题: var vie
根据Formatting Object documentation region-start( body 左侧的区域)跨越 之间 region-before(页眉)和 region-after(页脚)
我试图在 region-before 和 region-body 之间留出 10mm 的空间。但我无法将其与 regin-before 的大小相关联。 边界应该是这样的。使用单线“Bemerkung”
我正在伦敦地区的 AWS beanstalk 平台上部署 Spring boot 应用程序,但出现错误:- “无法实例化 [org.springframework.cloud.aws.core.reg
运行 vagrant 命令时出现如下错误, # vagrant up --provider=aws 这台机器的配置有错误。请修复以下错误并重试: AWS 提供商:* AMI 必须通过“ami”配置(
这实际上是三个不同的概念还是我混淆了? (我一直在阅读有关线程和垃圾收集的文章,但我自己也很困惑。) “关键部分” - 我认为这可能只是您不希望多个线程同时访问的代码部分的术语,即在 lock 和 M
我运行的是 Windows 10。当我从开始菜单中打开“区域和语言设置”时,我可以选择“国家或地区”。我试图在 C# 程序中获取此值。 我在丹麦。我曾尝试将我的国家/地区更改为德国(请参阅 scree
我是 javascript 新手,正在学习如何将新内容添加到现有 html 中。在下面的代码中,我尝试计算 DOM 中 li 的数量,并将总数显示到现有的 h2 元素。 我原以为结果是Region 6
我知道还有其他相同的问题,但他们没有解决我的问题。 我不断收到错误:Aws::Errors::MissingRegionError in BooksController#create, 缺少区域;使用
尝试使用 aws s3 java api 创建 AmazonS3ClientBuilder 对象并收到错误 按照这个例子: https://docs.aws.amazon.com/code-sampl
我使用 Rails 4.1 和 Postgresql(带有 PG gem)作为我的数据库。我有一个非常多的协会,从公司到省,有一个称为区域的连接表。现在显然区域表没有主键,因为我使用了 { :id =
我是一名优秀的程序员,十分优秀!