Download and initialise config during applicaiton runtime with secrets from aws parameter store
Download and initialise config during applicaiton runtime with secrets from aws parameter store
Install it via npm:
``shell`
npm install run-parameters
And include in your project:
`javascript
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()
`
1. See @cludden/ssm-config` to see how parameters are mapped onto json for more detailsGPL-3.0