Skip to content

Commit

Permalink
Merge pull request #3614 from joshgarnett/cloudwatch_metric_alarm_doc…
Browse files Browse the repository at this point in the history
…_fix

Fixing the cloudwatch_metric_alarm auto scale example
  • Loading branch information
apparentlymart committed Oct 23, 2015
2 parents 81ffb72 + d86376c commit 5435188
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}"]
}
Expand Down

0 comments on commit 5435188

Please sign in to comment.