From d86376c0ac2f4b173454001c26d6b18117f5ddf6 Mon Sep 17 00:00:00 2001 From: Joshua Garnett Date: Fri, 23 Oct 2015 08:22:46 -0400 Subject: [PATCH] Fixing the cloudwatch_metric_alarm auto scale example --- .../docs/providers/aws/r/cloudwatch_metric_alarm.html.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/source/docs/providers/aws/r/cloudwatch_metric_alarm.html.markdown b/website/source/docs/providers/aws/r/cloudwatch_metric_alarm.html.markdown index d75333596..6c6cab23b 100644 --- a/website/source/docs/providers/aws/r/cloudwatch_metric_alarm.html.markdown +++ b/website/source/docs/providers/aws/r/cloudwatch_metric_alarm.html.markdown @@ -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}"] }