Last active
September 22, 2015 22:43
-
-
Save boushley/13cb292fe95c7da1dabf to your computer and use it in GitHub Desktop.
JAWS Environment Variables
This file contains 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
# List JAWS environment variables | |
# jaws env list [stage] [region] | |
jaws env list dev us-west-2 # This will show all environment variables for the stage `dev` in us-west-2 | |
# Set an environment variable | |
# jaws env set [stage] [region] [key] [value] | |
jaws env set dev us-west-2 MY_ENV_VAR somevalue # This sets the environment variable `MY_ENV_VAR` to `somevalue` for the dev stage in us-west-2 |
This file contains 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
// You access these environment variables by referencing process.env | |
console.log(process.env.DYNAMO_TABLE); // In stage `dev` in us-west-2 this should now print `somevalue` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment