aws-ssm-parameter-resolve

Automated parameters resolution from AWS Systems Manager Parameter Store

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
aws-ssm-parameter-resolve
103.1.03 years ago5 years agoMinified + gzip package size for aws-ssm-parameter-resolve in KB

Readme

!nix build statusnix-build-imagenix-build-url !npm versionnpm-imagenpm-url
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