Ask Your Question
0

puppetlabs-aws does not support VPC ?

asked 2015-02-06 15:57:46 -0600

singaravelan gravatar image

updated 2015-02-06 19:28:30 -0600

GregLarkin gravatar image

I have installed AWS module to provision vpc instance in AWS, it shows that there is no options available to specify subnet group. does it mean not supported ?

$pe_master_hostname = 'puppet.testlabs.com'
ec2_instance { 'AWSPeTEST':
  ensure            => present,
  region            => 'us-east-1',
  image_id          => 'ami-e08efbd0',
  instance_type     => 't1.micro',
  key_name          => 'Dev1-VA',
  subnet            => 'subnet-aeec2e85'
  security_groups   => ['sgVPCDev1-VA-1-PA'],
  user_data         => template('module/file-path.sh.erb'),
  tags              => {
    tag_name => 'value',
  },
}


Error: Invalid parameter subnet on Ec2_instance[AWSPeTEST]
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-02-09 09:49:15 -0600

rnelson0 gravatar image

It does not appear there is a subnet parameter. You can see the examples at https://github.com/puppetlabs/puppetl... , which do not show the subnet parameter, but it is best to check the source code as well, in case the documentation is out of date. Visit https://github.com/puppetlabs/puppetl... and look at the newproperty and newparam calls. None are labelled subnet, so it is not available. Perhaps one of the other parameters would provide that information indirectly.

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: 2015-02-06 15:57:46 -0600

Seen: 229 times

Last updated: Feb 09 '15