Ask Your Question
0

Puppet apply error (Error: Failed to apply catalog: uninitialized constant Aws::EC2). Pls help debug.

asked 2017-11-04 01:24:15 -0600

akash gravatar image

Hi, I have just installed puppet and it seemed to work for a hello world test (create a temp file). Next I installed puppetlabs-aws module (along with aws-sdk gem), but i am not able to make it work. Every time i try to use any aws module construct (security group, ec2) i get the below error: Error: Failed to apply catalog: uninitialized constant Aws::EC2. Currently I am trying to use command puppet apply -t on the puppet server node only.

On googling I found that error is due to mismatch among the aws module and gem library (v1 vs v2), but i do seem to have v2 aws module and 3.6 aws-sdk, so both seem to be v2 or above.. Please help me debug the error. Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-06 02:55:30 -0600

akash gravatar image

Hi, Have just been able to make it work. Issue was that aws module v2 did not work with aws-sdk core v3. After downgrading it to aws-sdk core v2 (2.10.78), it started to work.

Thanks

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-11-04 01:24:15 -0600

Seen: 42 times

Last updated: Nov 06