run-parameters
v2.0.0
Published
Download and initialise config during applicaiton runtime with secrets from aws parameter store
Downloads
134
Readme
run-parameters
Download and initialise config during applicaiton runtime with secrets from aws parameter store
Getting Started
Install it via npm:
npm install run-parameters
And include in your project:
import runParameters from 'run-parameters';
runParameters
.init(defaultConfigJson, paramName, awsRegion)
.then(rawConfigJson => {
// you can update the config json here
})
// reading config post init
rawConfigJson = runParameters.get()
Details
- awsRegion default value ='ap-southeast-2'
- if nodeEnv is unset or in ignored environments, then localconfig is merged onto default config and returned
- paramName is the namespaced parameter name (rootpath) for the config.
/${accountName}/${appName}/${env}[:configVersion]
- See
@cludden/ssm-config
to see how parameters are mapped onto json for more details
License
GPL-3.0