You can Watch all our Tutorials and Training Videos for Free on ourYouTube Channel

Fix AWS CLI AuthFailure - Validate with access credentials

fix AWS CLI AuthFailure, aws cli authfailure error, resolve auth failure error on linux, resolve aws cli auth failure, aws cli authentication failure
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.

DevOps Full Course Tutorial for Beginners - DevOps Free Training Online
Docker Full Course Tutorial for Beginners - Docker Free Training Online
Kubernetes Full Course Tutorial for Beginners - Kubernetes Free Training Online
Ansible Full Course Tutorial for Beginners - Ansible Free Training Online
Openstack Full Course Tutorial for Beginners - Openstack Free Training Online

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.

[ ~]# 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.

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

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.

[ ~]# 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.
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.
whatsapp logo