0.1.4 • Published 3 years ago

@matthewbonig/cfn-response v0.1.4

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 years ago

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.