Helper functions which simplify working with AWS CloudFormation stacks.
npm i --save-dev --save-exact @bifravst/cloudformation-helpers
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",
});
};This project requires Node.js >=22 and npm >=12.0.2 <13 (enforced via
check-node-version on npm install and npm ci).
The check is skipped during npm publish and npm pack, because
semantic-release bundles its own npm (@semantic-release/npm depends on
npm@^11.6.2) and runs the publish with that version rather than the one
installed in CI.