如何在常规AWS CLI调用中使用Signature Version 4

0

【以下的问题经过翻译处理】 如果执行aws ec2 describe-images --region $REGION这样的简单AWS CLI命令时,当REGION是af-south-1、ap-east-1、eu-south-1或me-south-1之一,会产生错误AWS was not able to validate the provided access credentials

这个StackOverflow问题表示,较新的区域仅支持第4版本的签名认证。那我如何在AWS CLI(v.2.4.15)中选择这个版本? 如下链接说明,这是一个自动回复说明,但没有清晰解释。(https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html)

注:

  • 不管我是否有这个~/.aws/config文件,都会发生这种情况:
region = us-east-1
output = json
cli_pager=

  • 我没有.boto文件,
  • 我的时钟和时区似乎是正确的。
1 réponse
0

【以下的回答经过翻译处理】 这些地区默认情况下是未启用的,您是否[激活了这些地区]?(https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-account-payment.html#manage-account-payment-enable-disable-regions)

profile picture
EXPERT
répondu il y a 5 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions