lambda-cloudformation-resource
v1.0.3
Published
Helper for Lambda-backed CloudFormation custom resources
Downloads
111
Readme
lambda-cloudformation-resource
A wrapper for Lambda-backed custom resources in CloudFormation that has no dependencies and handles timeouts for you.
Usage
const helper = require('lambda-cloudformation-resource');
module.exports.handler = helper((event) => {
if (event.RequestType === 'Delete') {
// maybe you do not need to handle Delete
return;
}
// return a promise
return doSomething();
});