Merge pull request #143 from teaxyz/ops/sls-vpc-config

devops: vpc setup for serverless lambdas
This commit is contained in:
Neil 2022-10-27 22:24:16 +08:00 committed by GitHub
commit 587d76a2b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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