File tree 5 files changed +21
-33
lines changed
5 files changed +21
-33
lines changed Original file line number Diff line number Diff line change @@ -8,17 +8,17 @@ Resources:
8
8
GroupDescription: Security group for Postgres Metadata DB. Public access
9
9
GroupName: "{{ serviceName }}-{{ ENVIRONMENT }}-metadata-db-public-security-group"
10
10
SecurityGroupEgress:
11
+ - CidrIp: 0.0.0.0/0
12
+ FromPort: 0
13
+ IpProtocol: -1
14
+ ToPort: 0
15
+ SecurityGroupIngress:
11
16
{% for ip in whitelistedIPs %}
12
17
- CidrIp: "{{ ip }}"
13
18
FromPort: "{{ metadataDb.port }}"
14
19
IpProtocol: tcp
15
20
ToPort: "{{ metadataDb.port }}"
16
21
{% endfor %}
17
- SecurityGroupIngress:
18
- - CidrIp: 0.0.0.0/0
19
- FromPort: "{{ metadataDb.port }}"
20
- IpProtocol: tcp
21
- ToPort: "{{ metadataDb.port }}"
22
22
- CidrIp: "{{ service.cidrBlock }}/16"
23
23
FromPort: "{{ metadataDb.port }}"
24
24
IpProtocol: tcp
Original file line number Diff line number Diff line change @@ -17,12 +17,10 @@ Resources:
17
17
GroupDescription: Security group for Redis
18
18
GroupName: "{{ serviceName }}-{{ ENVIRONMENT }}-redis-security-group"
19
19
SecurityGroupEgress:
20
- {% for ip in whitelistedIPs %}
21
- - CidrIp: "{{ ip }}"
22
- FromPort: "{{ celeryBackend.port }}"
23
- IpProtocol: tcp
24
- ToPort: "{{ celeryBackend.port }}"
25
- {% endfor %}
20
+ - CidrIp: 0.0.0.0/0
21
+ FromPort: 0
22
+ IpProtocol: -1
23
+ ToPort: 0
26
24
SecurityGroupIngress:
27
25
- CidrIp: "{{ service.cidrBlock }}/16"
28
26
FromPort: "{{ celeryBackend.port }}"
Original file line number Diff line number Diff line change @@ -7,21 +7,17 @@ Resources:
7
7
GroupDescription: Security group for Airflow Flower. Allow all inbound traffic.
8
8
GroupName: "{{ serviceName }}-{{ ENVIRONMENT }}-flower-external-security-group"
9
9
SecurityGroupEgress:
10
+ - CidrIp: 0.0.0.0/0
11
+ FromPort: 0
12
+ IpProtocol: -1
13
+ ToPort: 0
14
+ SecurityGroupIngress:
10
15
{% for ip in whitelistedIPs %}
11
16
- CidrIp: "{{ ip }}"
12
- FromPort: 80
13
- IpProtocol: tcp
14
- ToPort: 80
15
- - CidrIp: "{{ ip }}"
16
- FromPort: 443
17
- IpProtocol: tcp
18
- ToPort: 443
19
- {% endfor %}
20
- SecurityGroupIngress:
21
- - CidrIp: 0.0.0.0/0
22
17
FromPort: "{{ service.port }}"
23
18
IpProtocol: tcp
24
19
ToPort: "{{ service.port }}"
20
+ {% endfor %}
25
21
VpcId: !ImportValue network-VpcId
26
22
Tags:
27
23
- Key: Name
Original file line number Diff line number Diff line change @@ -7,21 +7,17 @@ Resources:
7
7
GroupDescription: Security group for Airflow webserver. Allow all inbound traffic.
8
8
GroupName: "{{ serviceName }}-{{ ENVIRONMENT }}-webserver-security-group"
9
9
SecurityGroupEgress:
10
+ - CidrIp: 0.0.0.0/0
11
+ FromPort: 0
12
+ IpProtocol: -1
13
+ ToPort: 0
14
+ SecurityGroupIngress:
10
15
{% for ip in whitelistedIPs %}
11
16
- CidrIp: "{{ ip }}"
12
- FromPort: 80
13
- IpProtocol: tcp
14
- ToPort: 80
15
- - CidrIp: "{{ ip }}"
16
- FromPort: 443
17
- IpProtocol: tcp
18
- ToPort: 443
19
- {% endfor %}
20
- SecurityGroupIngress:
21
- - CidrIp: 0.0.0.0/0
22
17
FromPort: "{{ service.port }}"
23
18
IpProtocol: tcp
24
19
ToPort: "{{ service.port }}"
20
+ {% endfor %}
25
21
VpcId: !ImportValue network-VpcId
26
22
Tags:
27
23
- Key: Name
Original file line number Diff line number Diff line change @@ -81,8 +81,6 @@ publicSubnet:
81
81
cidrBlock : 10.0.3.0/24
82
82
availabilityZone : c
83
83
84
- # List of SecurityGroupEgress.
85
- # Will be used to whitelist IPs for webserver, flower, workers and scheduler
86
84
whitelistedIPs :
87
85
- 0.0.0.0/0
88
86
You can’t perform that action at this time.
0 commit comments