From ff0677d70fbde9ebd5f31677b58f93afc9867fac Mon Sep 17 00:00:00 2001 From: wyvern8 Date: Thu, 5 Jul 2018 23:06:39 +1000 Subject: [PATCH] fix(lambda): sls env var pass --- .envExample | 1 + src/executors/ExecutorDockerServerless.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.envExample b/.envExample index 67a4f702..2ef5397a 100644 --- a/.envExample +++ b/.envExample @@ -47,6 +47,7 @@ GTM_SLS_EXECUTOR_AWS_EXECUTION_ROLE= GTM_SLS_EXECUTOR_DEPLOY_MODE=parallel GTM_SLS_EXECUTOR_APIGW_ENDPOINT_TYPE=EDGE GTM_SLS_EXECUTOR_APIGW_DOMAIN_SUFFIX=lambda.mysuffix.com +GTM_SLS_EXECUTOR_DEPLOYMENT_S3_BUCKET_PREFIX= GTM_SLS_EXECUTOR_HTTP_PROXY= GTM_SLS_EXECUTOR_NO_PROXY= diff --git a/src/executors/ExecutorDockerServerless.js b/src/executors/ExecutorDockerServerless.js index de934624..6af5139e 100644 --- a/src/executors/ExecutorDockerServerless.js +++ b/src/executors/ExecutorDockerServerless.js @@ -96,8 +96,9 @@ export class ExecutorDockerServerless extends ExecutorDocker { SLS_DEPLOY_MODE: process.env.GTM_SLS_EXECUTOR_DEPLOY_MODE || 'parallel', SLS_APIGW_ENDPOINT_TYPE: process.env.GTM_SLS_EXECUTOR_APIGW_ENDPOINT_TYPE, SLS_APIGW_DOMAIN_SUFFIX: process.env.GTM_SLS_EXECUTOR_APIGW_DOMAIN_SUFFIX, - HTTP_PROXY: process.env.GTM_SLS_EXECUTOR_HTTP_PROXY, - NO_PROXY: process.env.GTM_SLS_EXECUTOR_NO_PROXY + SLS_DEPLOYMENT_S3_BUCKET_PREFIX: process.env.GTM_SLS_EXECUTOR_DEPLOYMENT_S3_BUCKET_PREFIX, + SLS_HTTP_PROXY: process.env.GTM_SLS_EXECUTOR_HTTP_PROXY, + SLS_NO_PROXY: process.env.GTM_SLS_EXECUTOR_NO_PROXY }, validator: { type: 'outputRegex',