0.0.9 • Published 6 years ago

mg-aws v0.0.9

Weekly downloads
146
License
ISC
Repository
github
Last release
6 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

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago