Configure environment varibles.
npm i pambda-env
const { compose, createLambda } = require('pambda');
const { env } = require('pambda-env');
exports.handler = createLambda(
compose(
env({
ssm: {
path: '/my-app',
withDecryption: true,
},
}, {
DATABASE_URL: true,
}),
)
);
srcOptions
- Options that is passed to envSrc().
checkOptions
- Options that is passed to checkenv().
- If this arg is omitted, do nothing.
MIT