Skip to content

Instantly share code, notes, and snippets.

@alecbw
Created September 18, 2020 01:21
Show Gist options
  • Save alecbw/1133281ddcf6a4ec04e17929f86f8136 to your computer and use it in GitHub Desktop.
Save alecbw/1133281ddcf6a4ec04e17929f86f8136 to your computer and use it in GitHub Desktop.
A script snippet that you can throw at the bottom of your serverless.yml that evaluates env vars at runtime and will break sls deploys if they are missing
custom:
scripts:
commands:
hello: This breaks the deploy if env vars aren't set. ${env:FOOBAR}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment