Skip to content

Commit 8ef7ee4

Browse files
authored
Merge pull request #1567 from guardian/aa/rm-GuardianAccessSecurityGroup-take2
chore: Detach `GuardianAccessSecurityGroup` security group from EC2 instances
2 parents af8b77f + 41033e0 commit 8ef7ee4

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -814,9 +814,6 @@ exports[`The Registration stack matches the snapshot for CODE 1`] = `
814814
{
815815
"Ref": "InstanceSecurityGroup",
816816
},
817-
{
818-
"Ref": "GuardianAccessSecurityGroup",
819-
},
820817
{
821818
"Ref": "VPCSecurityGroup",
822819
},
@@ -1691,9 +1688,6 @@ exports[`The Registration stack matches the snapshot for PROD 1`] = `
16911688
{
16921689
"Ref": "InstanceSecurityGroup",
16931690
},
1694-
{
1695-
"Ref": "GuardianAccessSecurityGroup",
1696-
},
16971691
{
16981692
"Ref": "VPCSecurityGroup",
16991693
},

registration/conf/registration.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ Resources:
143143
- !GetAtt LoadBalancerToPrivateASG.DNSName
144144
TTL: 60
145145
Type: CNAME
146+
147+
# TODO remove this resource as it's redundant following adoption of https://github.com/guardian/ssm-scala.
146148
GuardianAccessSecurityGroup:
147149
Type: AWS::EC2::SecurityGroup
148150
Properties:
@@ -290,7 +292,6 @@ Resources:
290292
InstanceType: !FindInMap [StageVariables, !Ref Stage, InstanceType]
291293
SecurityGroups:
292294
- !Ref InstanceSecurityGroup
293-
- !Ref GuardianAccessSecurityGroup
294295
- !Ref VPCSecurityGroup
295296
MetadataOptions:
296297
HttpTokens: required

report/conf/report.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ Resources:
7676
- !GetAtt LoadBalancerToPrivateASG.DNSName
7777
TTL: 60
7878
Type: CNAME
79+
80+
# TODO remove this resource as it's redundant following adoption of https://github.com/guardian/ssm-scala.
7981
GuardianAccessSecurityGroup:
8082
Type: AWS::EC2::SecurityGroup
8183
Properties:
@@ -282,7 +284,6 @@ Resources:
282284
InstanceType: !FindInMap [StageVariables, !Ref Stage, InstanceType]
283285
SecurityGroups:
284286
- !Ref InstanceSecurityGroup
285-
- !Ref GuardianAccessSecurityGroup
286287
- !Ref VPCSecurityGroup
287288
MetadataOptions:
288289
HttpTokens: required

0 commit comments

Comments
 (0)