CloudWatch指标查询失败:InvalidClientTokenId

huangapple go评论49阅读模式
英文:

CloudWatch metrics query failed: InvalidClientTokenId

问题

在尝试将 Grafana 连接到位于 ap-east-1 区域的 CloudWatch 时出现此错误。我正在使用访问密钥和秘密密钥以及在其他区域正常工作的 Assume Role ARN。

发现类似问题:https://github.com/grafana/grafana/issues/48267#issuecomment-1119592852
但在 Grafana 服务器上设置 AWS_STS_REGIONAL_ENDPOINTS=regional 环境变量并没有帮助。
也许我做错了什么,希望能提供一些建议。

英文:

Getting this error while trying to connect grafana to cloudwatch in opt-in ap-east-1 region. I'm using access & secret key with Assume Role ARN witch work fine in other regions.
Found similar issue https://github.com/grafana/grafana/issues/48267#issuecomment-1119592852
but setting AWS_STS_REGIONAL_ENDPOINTS=regional env var on grafana server does not help.
May be i'm doing something wrong, please any suggestions.

答案1

得分: 0

使用当前地区的AWS管理员用户帐户。在deb/rpm Grafana中不可能使用AWS_STS_REGIONAL_ENDPOINTS=regional变量,但在容器中可以。

英文:

After a day of researching and test, i found answer. Use aws admin user account of current region. Unpossible to use AWS_STS_REGIONAL_ENDPOINTS=regional variable in deb/rpm grafana but for example in container it

huangapple
  • 本文由 发表于 2023年2月18日 01:20:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/75487398.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定