跳至内容

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
已提问 2 年前4651 查看次数
1 回答
1
已接受的回答

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
专家
已回答 2 年前
专家
已审核 2 年前
专家
已审核 2 年前
  • Thank You, Issue was time on my Linux instance was not matching.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。