pambda-env
v0.1.2
Published
Configure environment varibles
Downloads
3
Readme
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
- Options that is passed to envSrc().
checkOptions
- Options that is passed to checkenv().
- If this arg is omitted, do nothing.
License
MIT