AWS was not able to validate the provided access credentials

0

aws ec2 describe-instances throwing this error An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials

But, works fine with S3 bucket

Permission Policies (attached with IAM user)

  • AdministratorAccess
  • IAMUserChangePassword
asked 13 days ago99 views
1 Answer
1
Accepted Answer

Hello.

Try running the AWS CLI command with the "--debug" option added.
You may be able to determine what the problem is by looking at the debug logs.

aws ec2 describe-instances --debug

I also think you need to make sure you are using the correct credentials as mentioned in the documentation below.
https://repost.aws/knowledge-center/troubleshoot-aws-cli-commands-ec2

aws sts get-caller-identity
profile picture
EXPERT
answered 13 days ago
profile picture
EXPERT
reviewed 12 days ago
profile picture
EXPERT
reviewed 12 days ago
  • Thank You, Issue was time on my Linux instance was not matching.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions

Relevant content