Skip to content

maasglobal/aws-ssm-parameter-resolve

Repository files navigation

*nix build status npm version

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •