@matthewbonig/cfn-response
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

cfn-response

This is a simple Typescript client library for responding to CloudFormation Custom Resources.

Based on this blog.

Example

import { send, ResponseStatus } from '@matthewbonig/cfn-response';
export const handler = async (event: any, context: any) => {
  await send({ ...event, PhysicalResourceId: context.logStreamName, Status: ResponseStatus.SUCCESS, Data: {}, NoEcho: false, Reason: '' });
}

Contributing

yes please, just submit a PR. Thanks.

Readme

Keywords

none

Package Sidebar

Install

npm i @matthewbonig/cfn-response

Weekly Downloads

1

Version

0.1.4

License

Apache-2.0

Unpacked Size

24.3 kB

Total Files

13

Last publish

Collaborators

  • matthewbonig