lambda-cfn-hook

3.0.5 • Public • Published

lambda-cfn-hook

Build Status Test Coverage Dependabot Status Dependencies NPM Downloads Semantic-Release Gardener

Lambda function wrapper for cfn custom resource hook

Install

npm i --save lambda-cfn-hook

Getting Started

import { wrap } from 'lambda-cfn-hook';

export const hook = wrap((event, context) => {
  // do stuff here
}, {/* options */});

and attach the hook function to a custom resource as a Lambda function in CloudFormation.

Options

  • silent boolean: Default false. If set to true, then no error is thrown if an event is received that isn't originating from a custom resource life-cycle lambda hook. Useful if the lambda handler is multi purpose.

Disclaimer

Code is adapted from here.

Package Sidebar

Install

npm i lambda-cfn-hook

Weekly Downloads

286

Version

3.0.5

License

MIT

Unpacked Size

7.54 kB

Total Files

5

Last publish

Collaborators

  • simlu