Created
September 18, 2020 01:21
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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