Skip to content

Parameter cache for AWS System Manager Parameter Store and AWS Secrets Manager

License

Notifications You must be signed in to change notification settings

david-dacostad/aws-parameter-cache

 
 

Repository files navigation

aws-parameter-cache

Build Status

Parameter cache for AWS System Manager Parameter Store and AWS Secrets Manager

Installation

npm install --save aws-parameter-cache

How to use

import { ssmParameter } from 'aws-parameter-cache';

const param = ssmParameter({ name: 'foo' });
const value = await param.value;

Secrets Manager Parameter

import { secretsManagerParameter } from 'aws-parameter-cache';

const param = secretsManagerParameter({ name: 'foo' });
const value = await param.value;

Cache invalidation

const param = ssmParameter({ name: 'foo', maxAge: 1000 * 60 * 5 });
const value = await param.value;

Force refresh

const param = ssmParameter({ name: 'foo' });
const value = await param.value;

param.refresh();

const newValue = await param.value;

License

MIT

About

Parameter cache for AWS System Manager Parameter Store and AWS Secrets Manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.8%
  • JavaScript 3.2%