Skip to content

Instantly share code, notes, and snippets.

@boushley
Last active September 22, 2015 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boushley/13cb292fe95c7da1dabf to your computer and use it in GitHub Desktop.
Save boushley/13cb292fe95c7da1dabf to your computer and use it in GitHub Desktop.
JAWS Environment Variables
# 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
// 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