AWS was unable to verify the provided access credentials. AuthFailed in SPECIFIC regions only

I am trying to do some action via linux aws CLI. My account file is 100% correct.

User has EC2FullAccess and Amdinistrative permissions (highest rank). I can execute all commands.

The problem is that the following regions produce an AuthFailed error, the rest areas are working fine:

  • Ohio
  • Central
  • Frankfurt
  • Seoul
  • London.

These regions are available to my account via the web interface and also aws ec2 describe-regions

prints all regions.

Instantiation, for example through the web interface in certain regions, works great.

The linux box date that I am using to access the aws cli is set to it by the hardware clock with a clock format difference. The hardware clock is 12 and the date command is in the format 24.

---------------------- Update ------------------------ --- ------

As I just found, the problem is with Signature 4. Here is the problem:

"SignatureVersion": ["2"] Signature Version 2 is not supported in regions that originally went live in 2014 or later, currently includes ap-northeast-2 and eu-central-1, as well as China. All regions support Signature Version 4 and only new regions support V4. http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html "

But how do I use SignatureVersion 4 only through the cli for my requests?

+3


source to share


1 answer


Try updating to the latest AWS CLI. Your installed AWS CLI may not be able to handle v4 signatures.

In the documentation:



For all AWS domains, the AWS SDK uses signature 4 by default to authenticate requests. When using AWS SDKs that were released prior to May 2016, you may need to request Signature Version 4

To check the current CLI version: aws --version

+2


source







All Articles