Skip to content

Commit e3b1369

Browse files
committed
Registration Cleaner Switched to non VPC Default SG
1 parent 6e7527f commit e3b1369

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

notificationworkerlambda/registration-cleaning-worker-cfn.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ 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
3532
FullyQualifiedHandler:
3633
Description: The full name of the handler, including path, class name and method
3734
Type: String
@@ -117,7 +114,7 @@ Resources:
117114
- Action:
118115
- rds-db:connect
119116
Effect: Allow
120-
Resource:
117+
Resource:
121118
Fn::ImportValue: !Sub RegistrationsDbProxyId-${Stage}
122119

123120
LambdaSecurityGroup:
@@ -153,7 +150,7 @@ Resources:
153150
VpcConfig:
154151
SecurityGroupIds:
155152
- !GetAtt LambdaSecurityGroup.GroupId
156-
- !Ref VPCSecurityGroup
153+
- !ImportValue NotificationsDefaultSecurityGroup-NotificationsMainSecurityGroup
157154
SubnetIds: !Ref VpcSubnets
158155
Tags:
159156
- Key: Stage

0 commit comments

Comments
 (0)