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
demandé il y a un mois151 vues
1 réponse
1
Réponse acceptée

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
répondu il y a un mois
profile picture
EXPERT
vérifié il y a un mois
profile picture
EXPERT
vérifié il y a un mois
  • Thank You, Issue was time on my Linux instance was not matching.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions