Read and write environment variables that are made immediately available to all deployed Lambda functions. Sensitive configuration data, such as API keys, needs to happen outside of the codebase in revision control and you can use this tool to ensure an entire team and the deployment targets are in sync.
npx envdisplays environment variables for the current
npx env staging FOOBAZ somevaluewrites env variable
FOOBAZ=somevalueto staging Lambdas
npx env remove testing FOOBAZremoves a
npx env verifydisplay a report of Lambdas and their env variables
Things to note
- Adding and removing variables automatically syncs all lambdas and the current working directory
- There is no performance impact to your app; these variables are synchronized every write and immediately available to all Lambdas defined by the current
.arcuses AWS Systems Manager Parameter Store as a centralized backing storage mechanism for app environment variables. Read more about AWS Systems Manager Parameter Store.
This file should not be committed into your project git repository.
- Generated by adding or removing env vars using
- Automatically read by
npx sandboxruns locally
- Lists env vars for
stagingfor local dev
This is an example file:
# example .arc-env @testing GLOBAL asdfasdf @staging GLOBAL_KEY val