Skip to content

Instantly share code, notes, and snippets.

@dgrstl
Created February 25, 2016 02:00
Show Gist options
  • Save dgrstl/fb9ce79c6f1d32fc43c6 to your computer and use it in GitHub Desktop.
Save dgrstl/fb9ce79c6f1d32fc43c6 to your computer and use it in GitHub Desktop.
dave-mbp:~ dave$ puppet resource ec2_securitygroup tse-master
ec2_securitygroup { 'tse-master':
ensure => 'present',
description => 'Security group for use by the Master, and associated ports',
ingress => [{'cidr' => '0.0.0.0/0', 'from_port' => '80', 'protocol' => 'tcp', 'to_port' => '80'}, {'cidr' => '10.90.0.0/16', 'from_port' => '0', 'protocol' => 'icmp', 'to_port' => '-1'}, {'cidr' => '0.0.0.0/0', 'from_port' => '22', 'protocol' => 'tcp', 'to_port' => '22'}, {'cidr' => '0.0.0.0/0', 'from_port' => '3000', 'protocol' => 'tcp', 'to_port' => '3000'}, {'cidr' => '0.0.0.0/0', 'from_port' => '443', 'protocol' => 'tcp', 'to_port' => '443'}],
region => 'us-west-2',
tags => {'created_by' => 'cbarker', 'department' => 'TSE', 'project' => 'Infrastructure'},
vpc => 'tse-vpc',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment