EC2 API Error validating access credential

后端 未结 7 2076
梦谈多话
梦谈多话 2020-12-24 01:12

I installed the ec2 api following the amazon guide. I setted up the access id and secret as environment variable.

Here it is my profile:

expor

7条回答
  •  甜味超标
    2020-12-24 01:35

    This can also be due to an issue depending on which region you're trying to reach. I have a script trying to assume roles in all regions and kept getting this in Hong Kong (ap-east-1). You have to first enable this region in order to access it. You'll get this error for the following regions if you don't have them enabled:

    ap-east-1
    cn-north-1
    cn-northwest-1
    us-gov-east-1
    us-gov-west-1
    

    Strangely, ap-northeast-3 also gives an error but it's error is OptInRequired.

提交回复
热议问题