简体   繁体   English

为什么在我设置区域后 AWS CLI 报告“Credential should be scoped to a valid region”?

[英]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.

相关问题 具有 FIPS 的 AWS Iam——凭证应限定在有效区域 - AWS Iam with FIPS -- Credential should be scoped to a valid region 从 ECS 到达 DynamoDB 时,凭据应限定在有效区域范围内 - Credential should be scoped to a valid region when reaching DynamoDB from ECS 我应该如何使用区域获取 aws 区域名称 - How should i get aws region names using regions AWS CLI 从 CSV 导入凭证不添加区域 - AWS CLI importing credentials from CSV doesn't add region 我可以将 AWS elastic IP 从一个区域迁移到另一个区域吗? - Can I migrate AWS elastic IP from a region to another region? 您是否应该在 AWS 中为每个区域或可用区创建独立的 Terraform 配置? - Should you create independent Terraform configurations per Region or Availability Zone in AWS? AWS .NET SDK 使用Localstack时如何指定区域 - AWS .NET SDK How to specify region when using Localstack 配置区域在 Node.js AWS SDK - Configuring region in Node.js AWS SDK Ansible - 区域 us-east-2a 似乎不适用于 aws 模块 boto.ec2 - Ansible - Region us-east-2a does not seem to be available for aws module boto.ec2 AWS Java SDK - 无法通过区域提供商链找到区域 - AWS Java SDK - Unable to find a region via the region provider chain
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM