Merge pull request #3614 from joshgarnett/cloudwatch_metric_alarm_doc_fix
Fixing the cloudwatch_metric_alarm auto scale example
This commit is contained in:
commit
54351885b6
|
@ -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}"]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue