diff --git a/lambdas/serverless.ts b/lambdas/serverless.ts index 45c9d13..6f98e35 100644 --- a/lambdas/serverless.ts +++ b/lambdas/serverless.ts @@ -39,6 +39,15 @@ const serverlessConfiguration: AWS = { } ] } + }, + vpc: { + securityGroupIds: [ + "${ssm:/vpc/sg/serverless_lambdas}", + ], + subnetIds: [ + "${ssm:/vpc/subnets/private_1}", + "${ssm:/vpc/subnets/private_2}" + ] } }, // import the function via paths