Last active
January 1, 2019 06:03
-
-
Save li0nel/62e010506d7f52321817d62604058952 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AlarmTopic: | |
Type: AWS::SNS::Topic | |
Properties: | |
Subscription: | |
- Endpoint: [email protected] | |
Protocol: email | |
CPUAlarmHigh: | |
Type: AWS::CloudWatch::Alarm | |
Properties: | |
EvaluationPeriods: '1' | |
Statistic: Average | |
Threshold: '50' | |
AlarmDescription: Alarm if CPU too high or metric disappears indicating instance is down | |
Period: '60' | |
# AlarmActions: | |
# - Ref: ScaleUpPolicy | |
AlarmActions: | |
- Ref: AlarmTopic | |
Namespace: AWS/EC2 | |
Dimensions: | |
- Name: AutoScalingGroupName | |
Value: !Ref ECSAutoScalingGroup | |
ComparisonOperator: GreaterThanThreshold | |
MetricName: CPUUtilization |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment