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
gefragt vor einem Monat137 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
EXPERTE
beantwortet vor einem Monat
profile picture
EXPERTE
überprüft vor einem Monat
profile picture
EXPERTE
überprüft vor einem Monat
  • Thank You, Issue was time on my Linux instance was not matching.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen