Receiving message (AuthFailure) message


I am going through how to set the AWS CLI and have typed in my access key ID, secret access Key, default region and output format. When I run aws ec2 describe-vpcs, I receive the message An error occurred (AuthFailure) when calling the DescribeVpcs operation: AWS was not able to validate the provided access credentials What exactly am I doing wrong?

1 Answer

Hey , Could you confirm where you are getting the access key ID, secret access Key from are you copying it from the IAM console>Users>Security credentials ?

If you are, make sure to copy the right data, not including spaces when you paste on the terminal. There is an option to download the credentials to your local machine and copy from there.

Take great care if you opt to download the credentials, and protect them from being accessed by anyone else.

profile pictureAWS
answered a year ago

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