lambda-cloudformation-resource

Helper for Lambda-backed CloudFormation custom resources


Keywords
lambda, cloudformation, aws
License
MIT
Install
npm install lambda-cloudformation-resource@1.0.3

Documentation

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();
});