batch-alarms
Library for providing default CloudFormation dashboards & ECS Services
Installation
npm add batch-alarms
Usage
const cf = require('@mapbox/cloudfriend');
const alarms = require('batch-alarms');
cf.merge(
template,
alarms({
prefix: 'CFPrefix',
apache: cf.stackName,
email: 'nick@ingalls.ca',
cluster: cf.ref('APIECSCluster'),
service: cf.getAtt('APIService', 'Name'),
loadbalancer: cf.getAtt('APIELB', 'LoadBalancerFullName'),
targetgroup: cf.getAtt('APITargetGroup', 'TargetGroupFullName'),
})
);