Fixing the cloudwatch_metric_alarm auto scale example

This commit is contained in:
Joshua Garnett 2015-10-23 08:22:46 -04:00
parent c817e7c765
commit d86376c0ac
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}"]
}