0.0.9 • Published 8 years ago

lambda-cfn-response v0.0.9

Weekly downloads
82
License
MIT
Repository
github
Last release
8 years ago

Code Climate Travis CI Issue Count

lambda-cfn-response

The module sends a response object to a custom resource by way of an Amazon S3 pre-signed URL.

This module is different from the cfn-response module available on NPM as it doesn't end your lambda upon execution. This module returns a Promise and will need to be chained with context.done in order to stop the lambda execution.

How do I use it?

To use in your Lambda function code:

const response = require('lambda-cfn-response');

.....then((data) => (response(event, context, 'SUCCESS', data);)).then(context.done).....

The response function takes 4 arguments:

  • event and context provided by AWS Lambda
  • a status: 'SUCCESS' for successful executions or 'FAILED' for failed executions
  • responseData: an object containing all the data you wish to pass to your CFN custom resource which is calling the Lambda.

    License

Copyright Kickstarter, PBC.

Released under an MIT License.

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago