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