Skip to content

Commit 0313f82

Browse files
committed
Adding the new default Notifications SG to all GuardianAccessSecurityGroup SGs
1 parent cf6446f commit 0313f82

4 files changed

Lines changed: 28 additions & 0 deletions

File tree

cdk/lib/__snapshots__/registration.test.ts.snap

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,14 @@ exports[`The Registration stack matches the snapshot for CODE 1`] = `
268268
},
269269
"ToPort": 22,
270270
},
271+
{
272+
"FromPort": 22,
273+
"IpProtocol": "tcp",
274+
"SourceSecurityGroupId": {
275+
"Fn::ImportValue": "NotificationsDefaultSecurityGroup-NotificationsMainSecurityGroup",
276+
},
277+
"ToPort": 22,
278+
},
271279
],
272280
"Tags": [
273281
{
@@ -1137,6 +1145,14 @@ exports[`The Registration stack matches the snapshot for PROD 1`] = `
11371145
},
11381146
"ToPort": 22,
11391147
},
1148+
{
1149+
"FromPort": 22,
1150+
"IpProtocol": "tcp",
1151+
"SourceSecurityGroupId": {
1152+
"Fn::ImportValue": "NotificationsDefaultSecurityGroup-NotificationsMainSecurityGroup",
1153+
},
1154+
"ToPort": 22,
1155+
},
11401156
],
11411157
"Tags": [
11421158
{

notification/conf/notification.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ Resources:
114114
FromPort: 22
115115
IpProtocol: tcp
116116
ToPort: 22
117+
- SourceSecurityGroupId: !ImportValue NotificationsDefaultSecurityGroup-NotificationsMainSecurityGroup
118+
FromPort: 22
119+
IpProtocol: tcp
120+
ToPort: 22
117121
VpcId: !Ref VpcId
118122
HighCPUAlarm:
119123
Type: AWS::CloudWatch::Alarm

registration/conf/registration.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ Resources:
152152
FromPort: 22
153153
IpProtocol: tcp
154154
ToPort: 22
155+
- SourceSecurityGroupId: !ImportValue NotificationsDefaultSecurityGroup-NotificationsMainSecurityGroup
156+
FromPort: 22
157+
IpProtocol: tcp
158+
ToPort: 22
155159
VpcId: !Ref VpcId
156160
HighCPUAlarm:
157161
Type: AWS::CloudWatch::Alarm

report/conf/report.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ Resources:
8585
FromPort: 22
8686
IpProtocol: tcp
8787
ToPort: 22
88+
- SourceSecurityGroupId: !ImportValue NotificationsDefaultSecurityGroup-NotificationsMainSecurityGroup
89+
FromPort: 22
90+
IpProtocol: tcp
91+
ToPort: 22
8892
VpcId: !Ref VpcId
8993

9094
HighCpuAlarm:

0 commit comments

Comments
 (0)