Skip to content

Commit b83894b

Browse files
Merge pull request #9 from andresionek91/adjust-ip-whitelisting
re add egress rules to scheduler and workers
2 parents d47a0f3 + 979b4fa commit b83894b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

cloudformation/84_airflow-scheduler.yml.j2

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ Resources:
66
Properties:
77
GroupDescription: Security group for Airflow Scheduler
88
GroupName: "{{ serviceName }}-{{ ENVIRONMENT }}-scheduler-security-group"
9+
SecurityGroupEgress:
10+
- CidrIp: 0.0.0.0/0
11+
FromPort: 0
12+
IpProtocol: -1
13+
ToPort: 0
914
VpcId: !ImportValue network-VpcId
1015
Tags:
1116
- Key: Name

cloudformation/86_airflow-workers.yml.j2

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ Resources:
66
Properties:
77
GroupDescription: Security group for Airflow workers
88
GroupName: "{{ serviceName }}-{{ ENVIRONMENT }}-workers-security-group"
9+
SecurityGroupEgress:
10+
- CidrIp: 0.0.0.0/0
11+
FromPort: 0
12+
IpProtocol: -1
13+
ToPort: 0
914
SecurityGroupIngress:
1015
- CidrIp: "{{ service.cidrBlock }}/16"
1116
FromPort: "{{ service.workers.port }}"

0 commit comments

Comments
 (0)