Fix AWS CLI AuthFailure – Validate with access credentials

This post will help you to fix AWS CLI AuthFailure to use the AWS CLI to manage your AWS Services.

If you are interested in learning, Request you to go through the below recommended tutorial.

Fix AWS CLI AuthFailure – Validate with access credentials

This error is mostly occured due to wrong credendials or wrong date and time set on the server.


“An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials”.

Lets get started.

Check 1 : Verify the aws_access_key_id and aws_secret_access_key

Assume that you have configured your system to manage your AWS Services from AWS CLI command using “aws configure” command. Once it is done, you must have a credential file generated in your home directory.

[[email protected] ~]# cat /root/.aws/credentials
aws_access_key_id = AKIAI6MXBHOVEDJM77DA
aws_secret_access_key = wTPWr2rUview0axamwgMCc3qkydIjPmhgbRyK3Mn

Make sure the “aws_access_key_id” and “aws_secret_access_key” are correct as taken from IAM of AWS or create a new access key from IAM and change it accordingly in the credential file.

Check 2 : Verify the current date / time

Ensure the current date and time set on the server is correct or not.

[[email protected] ~]# date
Wed Apr 17 21:12:25 IST 2018
[[email protected] ~]#

If it is not correct, change it to current date and time as below.

Syntax: date MMDDhhmmYYYY

For example, today date is 04/18/2018 and time is 14:30 IST

[[email protected] ~]# date 041814302018

Above solution would help you to fix AWS authfailure error.

Keep practicing and have fun. Leave your comments if any.

Support Us: Share with your friends and groups.

Stay connected with us on social networking sites, Thank you.