Fix AWS CLI AuthFailure - Validate with access credentials

authfailure, aws errors, aws authfailure, aws access credentials, aws cli command issue, aws cli, aws cli error, aws access key id, aws secret access key

This post gives you the solution to fix the below error to use the AWS CLI to manage your AWS Services.

Error:
"An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials".
This error is mostly occured due to wrong credendials or wrong date and time set on the server.

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
[ads-post]
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 the AWS authfailure error. authfailure, aws errors, aws authfailure, AWS was not able to validate the provided access credentials, aws cli command issue, aws cli, aws cli error, aws access key id, aws secret access key, aws command not working, aws cli not working, aws access denied, aws tips, aws solution, aws fix, aws faqs, aws forums, amazon web services, aws configure, aws cli configure
Support Us: Share with your friends and groups.

Stay connected with us on social networking sites, Thank you.
YouTube | Facebook | Twitter | Pinterest | Rss
April 18, 2018

Post a Comment

[disqus][facebook][blogger]

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget