run-parameters
Download and initialise config during applicaiton runtime with secrets from aws parameter store
Last updated 2 years ago by mridul.khanal .
GPL-3.0 · Repository · Original npm · Tarball · package.json
$ cnpm install run-parameters 
SYNC missed versions from official npm registry.

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

  1. awsRegion default value ='ap-southeast-2'
  2. if nodeEnv is unset or in ignored environments, then localconfig is merged onto default config and returned
  3. paramName is the namespaced parameter name (rootpath) for the config. /${accountName}/${appName}/${env}[:configVersion]
  4. See @cludden/ssm-config to see how parameters are mapped onto json for more details

License

GPL-3.0

Current Tags

  • 2.0.0                                ...           latest (2 years ago)

5 Versions

  • 2.0.0                                ...           2 years ago
  • 2.0.0-beta.1                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 5
Last Month 0
Dependencies (2)

Copyright 2014 - 2017 © taobao.org |