Licence
MIT
Version
0.0.3
Deps
1
Size
5 kB
Vulns
0
Weekly
0
parameterstore-plugin
Funcmatic plugin that fetches environment variables from AWS Parameter Store and sets them in ctx.env
Install
__CODE_BLOCK_0__gt; npm install --save @funcmaticjs/parameterstore-plugin
Usage
const ParameterStorePlugin = require('@funcmaticjs/parameterstore-plugin')
func.use(new ParameterStorePlugin())
Configuration
Environment Variables
FUNC_PARAMETERSTORE_PATH
- Prefix of parameter name. For example if you have two parameters:
/myapp/prod/VAR1=helloand/myapp/prod/var2=worldyou should set value to be/myapp/prod/. Then this plugin will set the following variables inctx.env:
{
"VAR1": "hello",
"VAR2": "world
}
- Must be available in
ctx.envorprocess.envwhen this plugin runs in the env handler lifecycle.