Amazon EC2 : “Client.AuthFailure: AWS was not able to validate the provided access credentials.”

Uncategorized

Post on Amazon EC2 error I ran into to.

Nasty Code Errors

When trying to get Amazon EC2 CLI working on my Mac I got this error

“Client.AuthFailure: AWS was not able to validate the provided access credentials.”

Here is how I fixed it.

Went to my Amazon Account, and went to Security Credentials.

Added a new Access Keys, x.509 certificate, and a Key Pair and downloaded all the new files.

Then I ran these commands in my mac terminal – continue reading to see actual syntax

sudo chmod 600 [Location of my public key file]/file.pem
sudo chmod 600 [location of my certificate file]/file.pem
sudo chmod 600 [location of my private key file]/file.pem

Here’s what it actually looks like:

The sudo is optional.  You can do a google search and see what the sudo is for.

sudo chmod 600 /Users/user/Documents/Programming/AmazonEC2CLI/pk-XXXXXXXXXXXXXXXXXXXX.pem

sudo chmod 600 /Users/user/Documents/Programming/AmazonEC2CLI/pk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem

sudo chmod 600 /Users/user/Documents/Programming/AmazonEC2CLI/cert-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem

Now on the Security credentials page, get your Access Key ID and…

View original post 49 more words

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s