Default envvar value required to run? #253
Unanswered
michaelwooley
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm seeing that I must provide a default value for environment variables in order for my commands to run.
In short:
Command results
Without default environment variable value
If I run without a default value (i.e.
${env:MY_ENV}
) I get:With default environment variable value
If I add a default value (i.e.
${env:MY_ENV, ''}
) I get:Example
serverless.yaml
file(Modified version of the boilerplate project. Similar to serverless/examples/aws-python-http-api.)
Version info
❯ sls --version Running "serverless" from node_modules Framework Core: 3.36.0 (local) 3.36.0 (global) Plugin: 7.1.0 SDK: 4.4.0
Beta Was this translation helpful? Give feedback.
All reactions