@pocket-tools/lambda-secrets
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Lambda Secrets

This package is used to obtain a secret or parameter from the Lambda Layer cache when enabled.

Secrets Manaager Usage

import {fetchSecret} from '@pocket-tools/lambda-secrets';
const secret = fetchSecret('/Lambda/Super/Secret');
console.log(secret.superSecretValue);

This also assumes that the secret stored in Secrets Manager is a JSON based value, which it almost always is.

Parameter Store Usage

import {fetchParameter} from '@pocket-tools/lambda-secrets';
const parameter = fetchParameter('/Lambda/Super/SecretParameter');
console.log(parameter);

Readme

Keywords

Package Sidebar

Install

npm i @pocket-tools/lambda-secrets

Weekly Downloads

16

Version

1.2.0

License

Apache-2.0

Unpacked Size

7.53 kB

Total Files

6

Last publish

Collaborators

  • efixler
  • pocket-npm
  • bassrock