puppetlabs-toy-chest / puppetlabs-aws

Puppet module for managing AWS resources to build out infrastructure
Apache License 2.0
188 stars 216 forks source link

ec2_instance does not allow array of security_groups #475

Closed bdelamatre closed 6 years ago

bdelamatre commented 7 years ago

The documentation states that you should be able to specify multiple security groups when using ec2_instance, however, it will throw an error if an array is specified.

There are no examples showing multiple security groups works.

On line 48 of ec2_instance.rb the security_groups property has the following validation:

fail 'security_groups should be a String' unless value.is_a?(String)

bdelamatre commented 6 years ago

Working for me in the lat st version.