Merge pull request #3614 from joshgarnett/cloudwatch_metric_alarm_doc_fix

Fixing the cloudwatch_metric_alarm auto scale example
This commit is contained in:
Martin Atkins 2015-10-23 10:42:52 -07:00
commit 54351885b6
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ resource "aws_cloudwatch_metric_alarm" "bat" {
period = "120"
statistic = "Average"
threshold = "80"
dimensions {
AutoScalingGroupName = "${aws_autoscaling_group.bar.name}"
}
alarm_description = "This metric monitor ec2 cpu utilization"
alarm_actions = ["${aws_autoscaling_policy.bat.arn}"]
}