AWS was not able to validate the provided access credentials

When returning to a box to access AWS via CLI where it was previously working, we started getting an error back when running most commands. For example:

aws ec2 describe-instances

Resulted in the following:
An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials

You’d instantly presume that the access key and secret key are correct, however, other commands worked without issue, for example:

aws iam list-access-keys

The problem? NTP on the box wasn’t working well, block was out by 15 mins. Once NTP had been fixed, and the clock was back in sync, our AWS CLI commands all came back to life!

Leave a Reply

Your email address will not be published. Required fields are marked *