Skip to content

Commit

Permalink
put it in param store
Browse files Browse the repository at this point in the history
  • Loading branch information
mojotalantikite committed Jul 17, 2023
1 parent 75114c3 commit 0348aa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/postgres/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ custom:
- ${ssm:/configuration/${sls:stage}/vpc/subnets/private/a/id, ssm:/configuration/default/vpc/subnets/private/a/id}
- ${ssm:/configuration/${sls:stage}/vpc/subnets/private/b/id, ssm:/configuration/default/vpc/subnets/private/b/id}
- ${ssm:/configuration/${sls:stage}/vpc/subnets/private/c/id, ssm:/configuration/default/vpc/subnets/private/c/id}
publicSubnetA: ${ssm:/configuration/${sls:stage}/vpc/subnets/public/a/id, ssm:/configuration/default/vpc/subnets/public/a/id}
rotatorArn: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${self:service}-${sls:stage}-rotator'
serverless-offline-ssm:
stages:
Expand Down Expand Up @@ -168,7 +169,7 @@ resources:
ImageId: ami-05bfc1ab11bfbf484
SecurityGroupIds:
- !Ref PostgresVmSg
SubnetId: !Sub ${self:custom.privateSubnets}'
SubnetId: !Sub ${self:custom.publicSubnetA}'

PostgresVmSg:
Type: 'AWS::EC2::SecurityGroup'
Expand Down

0 comments on commit 0348aa6

Please sign in to comment.