@bifravst/cloudformation-helpers
v9.1.1
Published
Helper functions which simplify working with AWS CloudFormation stacks
Downloads
3,200
Readme
CloudFormation Helpers
Helper functions which simplify working with AWS CloudFormation stacks.
Installation
npm i --save-dev --save-exact @bifravst/cloudformation-helpers
Usage
cfnResponse
cfnResponse
implements sending custom resource responses.
import { cfnResponse, ResponseStatus } from "@bifravst/cloudformation-helpers";
import { CloudFormationCustomResourceEvent } from "aws-lambda";
/**
* Lambda creating a custom resource
*/
export const handler = async (
event: CloudFormationCustomResourceEvent,
): Promise<void> => {
// Create custom resource ...
await cfnResponse({
Status: ResponseStatus.SUCCESS,
event,
PhysicalResourceId: "MyCustomResource",
});
};