Ask Your Question
0

Error: AuthFailure => AWS was not able to validate the provided access credentials

asked 2015-03-09 09:26:57 -0500

Jerry gravatar image

updated 2015-03-09 19:14:17 -0500

GregLarkin gravatar image

Hi, I installed Puppet enterprise on m ec2 instance @ AWS

[ec2-user@ip-172-31-25-24 source]$ puppet --version
3.7.4 (Puppet Enterprise 3.7.2)

I added a ~/.fog file

[ec2-user@ip-172-31-25-24 ~]$ more ~/.fog
:default:
  :aws_access_key_id: xxxxxxxxxxxxxxxxxxxxx
  :aws_secret_access_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[ec2-user@ip-172-31-25-24 ~]$

but a list of my instances gives me:

[ec2-user@ip-172-31-25-24 ~]$ puppet node_aws list --region eu-central-1
Error: AuthFailure => AWS was not able to validate the provided access credentials
Error: Try 'puppet help node_aws list' for usage
[ec2-user@ip-172-31-25-24 ~]$

any idea ? found nothing on google

thanks, -Jerry

edit retag flag offensive close merge delete

Comments

What version of fog do you have installed?

GregLarkin gravatar imageGregLarkin ( 2015-03-09 19:15:31 -0500 )edit

4 Answers

Sort by ยป oldest newest most voted
0

answered 2015-03-10 01:26:47 -0500

Jerry gravatar image

updated 2015-03-10 01:33:20 -0500

removed the ":"

image description

edit flag offensive delete link more
0

answered 2015-03-10 02:32:39 -0500

Jerry gravatar image

updated 2015-03-10 02:35:23 -0500

Hi Greg, fog version is 1.2.0

image description

edit flag offensive delete link more
0

answered 2015-03-09 23:01:07 -0500

feniix gravatar image

try doing the following in your .fog file

default:
  aws_access_key_id: XXXXXXXXXXXXXX
  aws_secret_access_key: XXXXXXXXXXXXX
edit flag offensive delete link more

Comments

fog is version 1.2.0

Jerry gravatar imageJerry ( 2015-03-10 02:30:50 -0500 )edit

btw: s. https://docs.puppetlabs.com/pe/latest/cloudprovisioner_configuring.html here the colons are used in the samples

Jerry gravatar imageJerry ( 2015-03-10 07:11:26 -0500 )edit
0

answered 2015-03-16 02:39:19 -0500

Jerry gravatar image

Hi there,

the issue seems "only" be related to the "new" region in Frankfurt (eu-central-1).

It works fine for "older" regions like "ireland" (eu-west-1)

[ec2-user@ip-172-31-25-24 ~]$ puppet nodeaws list --region eu-central-1 Error: AuthFailure => AWS was not able to validate the provided access credentials Error: Try 'puppet help nodeaws list' for usage [ec2-user@ip-172-31-25-24 ~]$ puppet nodeaws list --region eu-west-1 i-8cf79d68: createdat: 2015-03-16 07:22:03 UTC dnsname: ec2-52-16-229-157.eu-west-1.compute.amazonaws.com id: i-8cf79d68 keyname: puppet-ireland state: running tags: {"CWID"=>"ren", "Name"=>"Puppettestirland", "DateCreated"=>"16.03.2015"} [ec2-user@ip-172-31-25-24 ~]$ ^C

Had such an issue with Splunk, too.

Maybe I need more actual versions of fog, ruby, guid, ....

greetings -Jerry

edit flag offensive delete link more

Comments

Hi Jerry, sorry for the very late reply - that seems like a pretty old version of Fog. The latest version is 1.28.0, and from what I gather, eu-central-1 is supported as of 1.25.0.

GregLarkin gravatar imageGregLarkin ( 2015-03-31 18:37:26 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-03-09 09:26:57 -0500

Seen: 2,204 times

Last updated: Mar 16 '15