Skip to content

Instantly share code, notes, and snippets.

@diegows
Created August 22, 2014 20:30

Revisions

  1. diegows created this gist Aug 22, 2014.
    19 changes: 19 additions & 0 deletions gistfile1.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    {% 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 %}