Watch all our Tutorials and Training Videos for Free on our Youtube Channel, Get Online Web Tools for Free on swebtools.com

Search Suggest

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.

Error:

"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.

[root@learnitguide.net ~]# cat /root/.aws/credentials
[default]
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.

[root@learnitguide.net ~]# date
Wed Apr 17 21:12:25 IST 2018
[root@learnitguide.net ~]#

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.

[root@learnitguide.net ~]# 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.