0.0.9 • Published 4 years ago

mg-aws v0.0.9

Weekly downloads
146
License
ISC
Repository
github
Last release
4 years ago

mg-aws

Collection of AWS utilities for making working with Amazon's Web Services a little easier.

npm i mg-aws --save

ssm - Secure System Manager

A utility that retrieves a list of values from the Property Manager and caches them. It is designed for properties that have been stored in JSON format in the property manager.

const ssmClass = require("mg-aws/ssm");

// Create the instance and load the parameters
const ssm = new ssmClass();
await ssm.init(["/dev/thecollector"]);

// Calls to individual items
console.log( ssm.getParams() );
console.log( ssm.getParam("thecollector") );
console.log( ssm.getParam("thecollector")["database"] );
console.log( ssm.getParam("thecollector")["username"] );

There are two special methods for caching parameters on-the-fly, fetchParamCache(param) and fetchParam(param) which will make the call out there and then.

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago