@architect/env
@architect/env reads and writes environment variables that are made immediately available to all deployed Functions. Use this tool to ensure your team and your application's deployment targets are in sync with sensitive configuration data (such as API keys) that needs to exist outside of your codebase.
Installation
npm install @architect/env
Use of AWS SSM
This modules stores environment variables as AWS SSM Parameters using
AWS SSM Parameter Store. Parameters are created such that:
- Each Parameter's
Name
stores environment variables in the format ${appname}/${environment}/${variableName}
. - Each Parameter's
Value
stores the environment variable value. - Each Parameter's
Type
is set to SecureString
.