-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate-sec-group.yml
41 lines (39 loc) · 1021 Bytes
/
create-sec-group.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# demo_setup.yml
- hosts: localhost
connection: local
gather_facts: False
tasks:
- name: example ec2 group
ec2_group:
name: default
description: an example EC2 group
region: us-east-1
rules:
- proto: tcp
from_port: 80
to_port: 80
cidr_ip: 0.0.0.0/0
- proto: tcp
from_port: 22
to_port: 22
cidr_ip: 0.0.0.0/0
- proto: tcp
from_port: 443
to_port: 443
cidr_ip: 0.0.0.0/0
name: default
description: Update Default to support Mysql
region: us-east-1
rules:
- proto: tcp
from_port: 80
to_port: 80
cidr_ip: 0.0.0.0/0
- proto: tcp
from_port: 22
to_port: 22
cidr_ip: 0.0.0.0/0
- proto: tcp
from_port: 3306
to_port: 3306
cidr_ip: 0.0.0.0/0