aws-ssm-parameter-resolve
v3.1.0
Published
Automated parameters resolution from AWS Systems Manager Parameter Store
Downloads
190
Readme
aws-ssm-parameter-resolve
Automated parameters resolution from AWS Systems Manager Parameter Store
Installation
npm install aws-ssm-paramter-resolve
Usage
Resolve parameters from common path, if not passed as an argument, it is read from SSM_PARAMETERS_PATH
env variable.
const ssmParameterResolver = require('aws-ssm-parameter-resolve');
ssmParameterResolver.resolve().then(parameters => {
// Assuming process.env.SSM_PARAMETERS_PATH is '/secrets/foo/'
console.log(`Param for /secrets/foo/api-key: ${parameters.get('api-key')}`);
});
ssmParameterResolver
.resolve('/secrets/bar/')
.then(parameters => console.log(`Resolved /secrets/bar/api-key ${parameters.get('api-key')}`));
Test & coverage
npm run check-coverage