Setting AWS Cloudwatch alarms
aws cloudwatch put-metric-alarm --alarm-name "application-name-cpu" --metric-name CPUUtilization --namespace AWS/EC2 --statistic Average --period 300 --threshold 80 --comparison-operator GreaterThanThreshold --dimensions "Name=InstanceId,Value=i-******" --alarm-actions arn:aws:sns:us-east-1:account_number:topic_name --unit Percent --evaluation-periods 2