Skip to content

greximus/cdk-alarms

 
 

Repository files navigation

@beigetech/cdk-alarms: Alarms for AWS Resources

Create CloudWatch alarms and event notifications for AWS resources, supported constructs:

  • DatabaseInstance
  • DatabaseCluster

Example:

Import {DatabaseAlarms} from '@beigetech/cdk-alarms';

let stack = new Stack();

let cluster = new DatabaseCluster(stack, "test-cluster", {
    engine: DatabaseClusterEngine.AURORA_MYSQL,
    masterUser: {
      username: "admin",
    },
    instanceProps: {
      vpc: new Vpc(stack, "test-vpc"),
      instanceType: InstanceType.of(InstanceClass.T3, InstanceSize.MICRO),
    },
});

DatabaseAlarm.createClusterAlarms(stack, cluster);

About

Use the AWS CDK to create alarms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.0%
  • Other 1.0%