aws-ssm-parameter-store-util
v1.0.7
Published
AWS SSM Parameter Store Util
Downloads
5
Readme
AWS SSM Pameter Store Util
Utility package to retrieve path based parameters from AWS SSM Parameter Store.
Install
npm install aws-ssm-parameter-store-util
Usage
Systems Manager Parameter Store
Parameter Name: /hello/greetings
Parameter Value: Hello World!
Node.JS
const ps = require('aws-ssm-parameter-store-util');
const PARAMETERS_PATH = '/hello';
# Will return 'Hello World!'
exports.handler = async(event) => {
await ps.init({
path: PARAMETERS_PATH, // required
config: { region: 'us-east-1' } // optional
});
return ps.greetings;
}
Note: If not executed from AWS Lambda, the 'aws-sdk' package must be imported.
Uninstall
npm uninstall aws-ssm-parameter-store-util