Skip to content

Commit 812906a

Browse files
committed
feat(lambda): sls executor support for apigw private endpoint resource policy
1 parent a42e928 commit 812906a

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

.envExample

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ GTM_SLS_EXECUTOR_APIGW_DOMAIN_SUFFIX=lambda.mysuffix.com
5050
GTM_SLS_EXECUTOR_DEPLOYMENT_S3_BUCKET_PREFIX=
5151
GTM_SLS_EXECUTOR_HTTP_PROXY=
5252
GTM_SLS_EXECUTOR_NO_PROXY=
53+
GTM_SLS_EXECUTOR_VPC_ID=
54+
GTM_SLS_EXECUTOR_VPC_SECURITY_GROUP_ID=
55+
GTM_SLS_EXECUTOR_VPC_SUBNET_A=
56+
GTM_SLS_EXECUTOR_VPC_SUBNET_B=
57+
GTM_SLS_EXECUTOR_VPC_SUBNET_C=
58+
GTM_SLS_EXECUTOR_AWS_KMS_KEY_ID=
5359

5460
GTM_CRYPT_GITHUB_TOKEN=<redacted>
5561
GTM_CRYPT_GITHUB_WEBHOOK_SECRET=<redacted>

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ Create an asynchronous CI agnostic mechanism for running custom test stage gates
109109
|GTM_SLS_EXECUTOR_APIGW_DOMAIN_SUFFIX|reverse proxy domain name that will have apiId added as subdomain. eg. lambda.mysuffix.com will result in [apiId].lambda.mysuffix.com|
110110
|GTM_SLS_EXECUTOR_HTTP_PROXY|proxy passed to serverless executor|
111111
|GTM_SLS_EXECUTOR_NO_PROXY|no_proxy passed to serverless executor|
112+
|GTM_SLS_EXECUTOR_VPC_ID|vpc id for private apigw endpoints|
113+
|GTM_SLS_EXECUTOR_VPC_SECURITY_GROUP_ID|vpc security group id|
114+
|GTM_SLS_EXECUTOR_VPC_SUBNET_A| vpc az subnet |
115+
|GTM_SLS_EXECUTOR_VPC_SUBNET_B| vpc az subnet |
116+
|GTM_SLS_EXECUTOR_VPC_SUBNET_C| vpc az subnet |
117+
|GTM_SLS_EXECUTOR_AWS_KMS_KEY_ID| kms key id for sls env var encryption |
112118

113119
> important: values of env vars prefixed with `GTM_CRYPT_*` must be created via `npm run sls-encrypt [name] [value]`
114120

src/executors/ExecutorDockerServerless.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export class ExecutorDockerServerless extends ExecutorDocker {
103103
SLS_DEPLOYMENT_S3_BUCKET_PREFIX: process.env.GTM_SLS_EXECUTOR_DEPLOYMENT_S3_BUCKET_PREFIX,
104104
SLS_HTTP_PROXY: process.env.GTM_SLS_EXECUTOR_HTTP_PROXY,
105105
SLS_NO_PROXY: process.env.GTM_SLS_EXECUTOR_NO_PROXY,
106+
SLS_VPC_ID: process.env.GTM_SLS_EXECUTOR_VPC_ID,
106107
SLS_VPC_SECURITY_GROUP_ID: process.env.GTM_SLS_EXECUTOR_VPC_SECURITY_GROUP_ID,
107108
SLS_VPC_SUBNET_A: process.env.GTM_SLS_EXECUTOR_VPC_SUBNET_A,
108109
SLS_VPC_SUBNET_B: process.env.GTM_SLS_EXECUTOR_VPC_SUBNET_B,

0 commit comments

Comments
 (0)