From 0348aa68a5448404c836321329d485213d0be251 Mon Sep 17 00:00:00 2001 From: Mojo Talantikite Date: Mon, 17 Jul 2023 17:10:11 -0400 Subject: [PATCH] put it in param store --- services/postgres/serverless.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/postgres/serverless.yml b/services/postgres/serverless.yml index 3b6058f0d2..2f0af55e07 100644 --- a/services/postgres/serverless.yml +++ b/services/postgres/serverless.yml @@ -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: @@ -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'