Skip to content

Instantly share code, notes, and snippets.

@garethr
Created March 18, 2015 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garethr/643914d4eaf9723103c2 to your computer and use it in GitHub Desktop.
Save garethr/643914d4eaf9723103c2 to your computer and use it in GitHub Desktop.
Managing default security groups in VPC with Puppet
ec2_securitygroup { 'default security group for some vpc': # <= this is a unique title
ensure => present,
name => 'default', # <= this is the actual security group name in AWS
region => 'sa-east-1',
vpc => 'sample-vpc',
description => 'default VPC security group',
ingress => [{
protocol => 'tcp',
port => 22,
cidr => '0.0.0.0/0'
}],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment