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

0 votes

Hi everyone,

I am getting the bellow error when tried to run AWS CLI commands.

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

How to solve this problem.

Thank You

Feb 24 in AWS by akhtar
• 14,030 points
1,158 views

2 answers to this question.

0 votes

Hi@akhtar,

If you are using AWS CLI, than you have to set your credentials first. To set credentials use the below command.

$ aws configure

If it is showing the same error, than check your Machine time and sync with standard time.

Hope it will solve your doubt.

Thank You

answered Feb 25 by MD
• 31,430 points
+1 vote
After checking time and aws configure settings, you may want to go C:\windows\users\, under your username, there is .aws folder, check config and credentials file there, some times there are more than 1 entry which causes conflict.

Delete both the files, and run "aws configure" again, it should fix the issue.

In summary, check below things

1.check the permission of the IAM user and ensure it has administrator access policy attached to it via the group.

2.Check date on local machine, make sure you run aws configure

3. Delete the config & credentials file from the .aws folder and ran aws configure command again
answered Apr 11 by Arun Kumar

Related Questions In AWS

0 votes
1 answer

"access denied" error when trying to move a file into the AWS server.

Hi@akhtar, I think you are trying to transfer file to ...READ MORE

answered Apr 2 in AWS by MD
• 31,430 points
174 views
0 votes
1 answer