Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 712 Bytes

README.md

File metadata and controls

42 lines (31 loc) · 712 Bytes

pambda-env

Configure environment varibles.

Installation

npm i pambda-env

Usage

const { compose, createLambda } = require('pambda');
const { env } = require('pambda-env');

exports.handler = createLambda(
  compose(
    env({
      ssm: {
        path: '/my-app',
        withDecryption: true,
      },
    }, {
      DATABASE_URL: true,
    }),
  )
);

env(srcOptions, checkOptions)

  • srcOptions
  • checkOptions
    • Options that is passed to checkenv().
    • If this arg is omitted, do nothing.

License

MIT