Post on Amazon EC2 error I ran into to.
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