@justin8-cdk/alarms-stack
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

CDK Alarms Stack

This is a very short and simple wrapper to create an SNS topic and subscribe a list of email addresses to the topic. It is just a shorter and more readable form to insert in to a CDK app for use with CloudWatch alarms

Usage

  const app = new cdk.App();
  const stack = new alarmsStack(app, "TestStack", {
      alarmEmails: ["me@example.com", "someoneElse@foo.xyz"],
      alarmsTopicName: "someTopic"
  });

The above will generate:

  • An SNS topic named "someTopic"
  • 2 email subscriptions, one for each of the given emails
  • The alarm topic is accessible at stack.alarmsTopic

Readme

Keywords

none

Package Sidebar

Install

npm i @justin8-cdk/alarms-stack

Weekly Downloads

1

Version

1.3.0

License

MIT

Unpacked Size

3.62 kB

Total Files

5

Last publish

Collaborators

  • justin8