Skip to content

Commit 8169a79

Browse files
committed
fix(serverless): pass SNS error topic name to docker serverless
1 parent 9ecd1d5 commit 8169a79

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

.envExample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ GTM_SLS_EXECUTOR_VPC_SUBNET_A=
5656
GTM_SLS_EXECUTOR_VPC_SUBNET_B=
5757
GTM_SLS_EXECUTOR_VPC_SUBNET_C=
5858
GTM_SLS_EXECUTOR_AWS_KMS_KEY_ID=
59+
GTM_SLS_EXECUTOR_SNS_ERROR_TOPIC_ARN=
5960
GTM_WORKER_SCRIPTS_CLONE=<optional git repo https url to clone and overlay>
6061
GTM_WORKER_SCRIPTS_PATH=<path within scripts dir to use as overlay>
6162

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ Create an asynchronous CI agnostic mechanism for running custom test stage gates
105105
|GTM_SLS_EXECUTOR_AWS_REGION| aws region for lambdas default ap-southeast-2|
106106
|GTM_SLS_EXECUTOR_AWS_EXECUTION_ROLE| docker serverless lambda execution role |
107107
|GTM_SLS_EXECUTOR_DEPLOY_MODE| deploy multiple lambdas 'parallel' (default) or 'sequential'|
108+
|GTM_SLS_EXECUTOR_SNS_ERROR_TOPIC_ARN| sns topic to notify on serverless error|
108109
|GTM_SLS_EXECUTOR_APIGW_ENDPOINT_TYPE|EDGE or REGIONAL or PRIVATE|
109110
|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|
110111
|GTM_SLS_EXECUTOR_HTTP_PROXY|proxy passed to serverless executor|

src/executors/ExecutorDockerServerless.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export class ExecutorDockerServerless extends ExecutorDocker {
100100
SLS_APIGW_ENDPOINT_TYPE: process.env.GTM_SLS_EXECUTOR_APIGW_ENDPOINT_TYPE,
101101
SLS_APIGW_DOMAIN_SUFFIX: process.env.GTM_SLS_EXECUTOR_APIGW_DOMAIN_SUFFIX,
102102
SLS_DEPLOYMENT_S3_BUCKET_PREFIX: process.env.GTM_SLS_EXECUTOR_DEPLOYMENT_S3_BUCKET_PREFIX,
103+
SLS_SNS_ERROR_TOPIC_ARN: process.env.GTM_SLS_EXECUTOR_SNS_ERROR_TOPIC_ARN,
103104
SLS_HTTP_PROXY: process.env.GTM_SLS_EXECUTOR_HTTP_PROXY,
104105
SLS_NO_PROXY: process.env.GTM_SLS_EXECUTOR_NO_PROXY,
105106
SLS_VPC_ID: process.env.GTM_SLS_EXECUTOR_VPC_ID,

0 commit comments

Comments
 (0)