Ask Your Question

AWS management seems to hang

asked 2016-03-02 22:07:19 -0500

theillien gravatar image

updated 2016-03-03 13:49:50 -0500

I've installed the puppetlabs-aws module and set up a basic ec2_instance manifest:

ec2_instance { 'puppet-prov-test':
  ensure        => present,
  region        => 'us-east-1',
  image_id      => 'ami-8fcee4e5',
  instance_type => 't1.micro',

I have the user access and secret key in ~/.aws/credentials in the format

aws_access_key_id: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
aws_secret_access_key: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

When I run puppet apply --noop --verbose nothing seems to happen. My cursor just blinks at me after jumping to the next line after I hit enter.

Did I miss something?


Per rnelson0, I have added the specific manifest and have even realized that I had not assigned appropriate permissions to the user that I have been attempting to execute this as. Now that I've fixed those two issues I am seeing a completion of the run but it still isn't doing anything:

# puppet apply /etc/puppetlabs/code/environments/production/modules/aws_prod/manifests/init.pp 
Notice: Compiled catalog for in environment production in 0.04 seconds
Notice: Applied catalog in 0.24 seconds

Once it completes I look at the AWS console. I do not see the server. I have also executed puppet resource ec2_instance which lists all existing servers but not the one I'm attempting to create.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-03 09:00:54 -0500

rnelson0 gravatar image

updated 2016-03-03 09:01:45 -0500

You need to point apply at a file or script. The cursor is blinking because it's waiting for you to give it something to do. If it helps, think of it like running grep with a pattern but no files, it just stares at you forever. You could paste in your ec2_instance resource at that point and end it with Ctrl-D on a blank line, or you could put it in a file ec2.pp and call puppet apply ec2.pp --noop --verbose.

edit flag offensive delete link more


I've edited my question to reflect my comments on your answer.

theillien gravatar imagetheillien ( 2016-03-03 13:49:23 -0500 )edit

I might try the example tests at to see if that works.

rnelson0 gravatar imagernelson0 ( 2016-03-03 15:18:51 -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

1 follower


Asked: 2016-03-02 22:07:19 -0500

Seen: 52 times

Last updated: Mar 03 '16