lambda-cloudformation-resource

    1.0.3 • Public • Published

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

    Install

    npm i lambda-cloudformation-resource

    DownloadsWeekly Downloads

    65

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    3.35 kB

    Total Files

    3

    Last publish

    Collaborators

    • dougmoscrop