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.
[firstname.lastname@example.org ~]# 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@example.com ~]# 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
[firstname.lastname@example.org ~]# 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.