Skip to content

Instantly share code, notes, and snippets.

@dgrstl
Created February 25, 2016 01:59
Show Gist options
  • Save dgrstl/7813179eb4da3f2cb3bc to your computer and use it in GitHub Desktop.
Save dgrstl/7813179eb4da3f2cb3bc to your computer and use it in GitHub Desktop.
dave-mbp:~ dave$ puppet resource ec2_securitygroup tse-crossconnect
ec2_securitygroup { 'tse-crossconnect':
ensure => 'present',
description => 'Security Group that allows masters to talk to agents and vice versa - prevents race condition',
ingress => [{'from_port' => '1', 'protocol' => 'udp', 'security_group' => 'tse-master', 'to_port' => '65535'}, {'from_port' => '1', 'protocol' => 'udp', 'security_group' => 'tse-agents', 'to_port' => '65535'}, {'from_port' => '1', 'protocol' => 'tcp', 'security_group' => 'tse-master', 'to_port' => '65535'}, {'from_port' => '1', 'protocol' => 'tcp', 'security_group' => 'tse-agents', 'to_port' => '65535'}, {'from_port' => '-1', 'protocol' => 'icmp', 'security_group' => 'tse-master', 'to_port' => '-1'}, {'from_port' => '-1', 'protocol' => 'icmp', 'security_group' => 'tse-agents', 'to_port' => '-1'}],
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