devops: vpc setup for serverless lambdas

This commit is contained in:
neil 2022-10-27 22:14:19 +08:00
parent 29d3267e0a
commit 83d360734d

View file

@ -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 // import the function via paths