So, I've been reading all around the internet, trying to get my functioning Elastic Beanstalk app to send me an email when a metric goes bad.
I know I can do this via the console, but I want a configurable approach that I can use for multiple deploys automatically.
I have this so far (SEE EDIT):
Resources:
AWSCloudWatch:
Type: "AWS::CloudWatch::Alarm"
Properties:
ActionsEnabled: true
AlarmActions: ""
AlarmDescription: "Traffic spike app over threshold"
AlarmName: "APP CPU Over 70%"
ComparisonOperator: GreaterThanOrEqualToThreshold
EvaluationPeriods: 5
MetricName: CPUUtilization
Namespace: Environment Health
Period: 60
Statistic: Maximum
Threshold: 70
Unit: Percent
How can I configure multiple alarms (environment health monitor, cpu monitor, latency monitor) and have them send me email?
EDIT: The above code creates an alarm that has nothing to do with ELB. It doesn't show up on the console and is instead created in a completely separate area. :(