From 83d360734d48483a405e634a3962d5b508a24b03 Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 27 Oct 2022 22:14:19 +0800 Subject: [PATCH] devops: vpc setup for serverless lambdas --- lambdas/serverless.ts | 9 +++++++++ 1 file changed, 9 insertions(+) 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