Skip to content

Commit

Permalink
fix(serverless): deploy mode env var
Browse files Browse the repository at this point in the history
  • Loading branch information
wyvern8 committed Jun 18, 2018
1 parent 9e32a14 commit 3dc65b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Create an asynchronous CI agnostic mechanism for running custom test stage gates
|GTM_SLS_EXECUTOR_AWS_STAGE| stage override from default calculation of dev/test|
|GTM_SLS_EXECUTOR_AWS_REGION| aws region for lambdas default ap-southeast-2|
|GTM_SLS_EXECUTOR_AWS_EXECUTION_ROLE| docker serverless lambda execution role |
|GTM_SLS_EXECUTOR_DEPLOY_MODE| deploy multiple lambdas 'parallel' (default) or 'sequential'|

> important: values of env vars prefixed with `GTM_CRYPT_*` must be created via `npm run sls-encrypt [name] [value]`
Expand Down
3 changes: 2 additions & 1 deletion src/executors/ExecutorDockerServerless.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ export class ExecutorDockerServerless extends ExecutorDocker {
AWS_S3_PROXY: '##GTM_AWS_S3_PROXY##',
SLS_AWS_STAGE: this.slsStage(),
SLS_AWS_REGION: process.env.GTM_SLS_EXECUTOR_AWS_REGION || 'ap-southeast-2',
SLS_AWS_EXECUTION_ROLE: process.env.GTM_SLS_EXECUTOR_AWS_EXECUTION_ROLE
SLS_AWS_EXECUTION_ROLE: process.env.GTM_SLS_EXECUTOR_AWS_EXECUTION_ROLE,
SLS_DEPLOY_MODE: process.env.GTM_SLS_EXECUTOR_DEPLOY_MODE || 'parallel'
},
validator: {
type: 'outputRegex',
Expand Down

0 comments on commit 3dc65b0

Please sign in to comment.