@nordicsemiconductor/cloudformation-helpers
TypeScript icon, indicating that this package has built-in type declarations

9.0.3 • Public • Published

CloudFormation Helpers npm version

GitHub Actions semantic-release Renovate @commitlint/config-conventional code style: prettier ESLint: TypeScript

Helper functions which simplify working with AWS CloudFormation stacks.

Installation

npm i --save-dev --save-exact @nordicsemiconductor/cloudformation-helpers

Usage

cfnResponse

cfnResponse implements sending custom resource responses.

import {
  cfnResponse,
  ResponseStatus,
} from "@nordicsemiconductor/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",
  });
};

Readme

Keywords

Package Sidebar

Install

npm i @nordicsemiconductor/cloudformation-helpers

Weekly Downloads

771

Version

9.0.3

License

BSD-3-Clause

Unpacked Size

14.6 kB

Total Files

13

Last publish

Collaborators

  • aadnekar
  • ken.redergard
  • bencefr
  • bihanssen
  • nordicsemi
  • asset-tracker-cloud-ci
  • chfa.nordicsemi.no