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
preguntada hace un mes137 visualizaciones
1 Respuesta
1
Respuesta aceptada

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
EXPERTO
respondido hace un mes
profile picture
EXPERTO
revisado hace un mes
profile picture
EXPERTO
revisado hace un mes
  • Thank You, Issue was time on my Linux instance was not matching.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas