Skip to content

Commit 2e0d6cf

Browse files
committed
Revert "Registration Cleaner Switched to non VPC Default SG"
This reverts commit e3b1369.
1 parent e3b1369 commit 2e0d6cf

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

notificationworkerlambda/registration-cleaning-worker-cfn.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ Parameters:
2929
VpcSubnets:
3030
Description: Subnets to use in the VPC
3131
Type: List<AWS::EC2::Subnet::Id>
32+
VPCSecurityGroup:
33+
Type: AWS::EC2::SecurityGroup::Id
34+
Description: The default security group of the VPC
3235
FullyQualifiedHandler:
3336
Description: The full name of the handler, including path, class name and method
3437
Type: String
@@ -114,7 +117,7 @@ Resources:
114117
- Action:
115118
- rds-db:connect
116119
Effect: Allow
117-
Resource:
120+
Resource:
118121
Fn::ImportValue: !Sub RegistrationsDbProxyId-${Stage}
119122

120123
LambdaSecurityGroup:
@@ -150,7 +153,7 @@ Resources:
150153
VpcConfig:
151154
SecurityGroupIds:
152155
- !GetAtt LambdaSecurityGroup.GroupId
153-
- !ImportValue NotificationsDefaultSecurityGroup-NotificationsMainSecurityGroup
156+
- !Ref VPCSecurityGroup
154157
SubnetIds: !Ref VpcSubnets
155158
Tags:
156159
- Key: Stage

0 commit comments

Comments
 (0)