Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ Parameters:
VpcSubnets:
Description: Subnets to use in the VPC
Type: List<AWS::EC2::Subnet::Id>
DbAccessSecurityGroup:
Description: Security group which grants access to Postgres (the stage-specific parameter store name is injected by Riff-Raff)
Type: AWS::SSM::Parameter::Value<AWS::EC2::SecurityGroup::Id>
AllowedValues:
- /CODE/mobile-notifications/registrations-db/postgres-access-security-group
- /PROD/mobile-notifications/registrations-db/postgres-access-security-group
Resources:
ExecutionRole:
Type: AWS::IAM::Role
Expand Down Expand Up @@ -100,7 +106,7 @@ Resources:
Timeout: 60
VpcConfig:
SecurityGroupIds:
- !ImportValue NotificationsDefaultSecurityGroup-NotificationsMainSecurityGroup
- !Ref DbAccessSecurityGroup
SubnetIds: !Ref VpcSubnets

DailyEvent:
Expand Down
5 changes: 5 additions & 0 deletions notificationworkerlambda/riff-raff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ deployments:
prependStackToCloudFormationStackName: false
cloudFormationStackName: expired-registration-cleaner-cfn
templatePath: expired-registration-cleaner-cfn.yaml
templateStageParameters:
CODE:
DbAccessSecurityGroup: /CODE/mobile-notifications/registrations-db/postgres-access-security-group
PROD:
DbAccessSecurityGroup: /PROD/mobile-notifications/registrations-db/postgres-access-security-group
registrations-db-proxy-cfn:
type: cloud-formation
app: registrations-db-proxy
Expand Down