[英]Why does the AWS CLI report `Credential should be scoped to a valid region` when I have set a region?
When running the AWS CLI to try to retrieve some ECS task definitions, the CLI reports the error:当运行 AWS CLI 尝试检索一些 ECS 任务定义时,CLI 报告错误:
An error occurred (InvalidSignatureException) when calling the DescribeTaskDefinition operation: Credential should be scoped to a valid region.
I have set a default region using aws configure
, and it is successfully stored, since it is reported when I run aws configure
once more.我已经使用
aws configure
设置了一个默认区域,并且它已成功存储,因为当我再次运行aws configure
时会报告它。
Any tips on how to resolve this error?有关如何解决此错误的任何提示?
I found that when configuring the region in the CLI, you should set it in lowercase .我发现在 CLI 中配置区域时,应该将其设置为lowercase 。
That is, set eu-west-1
(or similar) instead of EU-WEST-1
.也就是说,设置
eu-west-1
(或类似的)而不是EU-WEST-1
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.