Skip to content

Instantly share code, notes, and snippets.

@diegows
Created August 22, 2014 20:30
Show Gist options
  • Save diegows/6b0c548ec73f927492ea to your computer and use it in GitHub Desktop.
Save diegows/6b0c548ec73f927492ea to your computer and use it in GitHub Desktop.
{% for region in [ "eu-west-1", "sa-east-1", "ap-northeast-1", "us-west-2", "ap-southeast-1" ] %}
locust-secgroup-{{ region }}:
boto_secgroup.present:
- name: locust
- description: locust
- rules:
- ip_protocol: tcp
to_port:
- 80
- 443
- 5557
cidr_ip:
- 0.0.0.0/0
- region: {{ region }}
- keyid: XX
- key: XX
{% endfor %}
@ryan-lane
Copy link

{% for region in [ "eu-west-1", "sa-east-1", "ap-northeast-1", "us-west-2", "ap-southeast-1" ] %}

locust-secgroup-{{ region }}:
  boto_secgroup.present:
    - name: locust
    - description: locust
    - rules:
      - ip_protocol: tcp
        to_port: 80
        cidr_ip: 0.0.0.0/0
      - ip_protocol: tcp
        to_port: 443
        cidr_ip: 
      - ip_protocol: tcp
        to_port: 5557
        cidr_ip: 0.0.0.0/0
    - region: {{ region }}
    - keyid: XX
    - key: XX

{% endfor %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment