aws-parameters-store
Package for loading parameter-store values by path from AWS SSM into a JSON object
Features
- Gets parameters by path
- Collects all paged results automatically
- Built in typescript! (Built-in types)
- Uses Promises for async use
- Lightweight
Installation
npm install --save aws-parameters-store
Getting started
javascript
const paramStore = require( 'aws-parameters-store' );
paramStore.getParams('/hello-world/config1/', { region: 'us-east-1' })
.then( (parameters) => {
});
typescript
import getParams from 'aws-parameters-store';
getParams('/hello-world/config1/', { region: 'us-east-1' })
.then( (parameters) => {
});
API
overview
API calls return a promise
By default, JSON parameters are being evaluated
getParams( namespace, { options }, parseJsonValues = true )
import getParams from 'aws-parameters-store';
getParams('/hello-world/config1/', { region: 'us-east-1' })
.then( (parameters) => {
.catch( (error) => console.log(error));
});
Contributing
You are welcome to contribute and join our family =)
License
See the LICENSE file for license rights and limitations (Apache License, Version 2.0)