mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Fixing the cloudwatch_metric_alarm auto scale example
This commit is contained in:
parent
c817e7c765
commit
d86376c0ac
@ -45,6 +45,9 @@ resource "aws_cloudwatch_metric_alarm" "bat" {
|
|||||||
period = "120"
|
period = "120"
|
||||||
statistic = "Average"
|
statistic = "Average"
|
||||||
threshold = "80"
|
threshold = "80"
|
||||||
|
dimensions {
|
||||||
|
AutoScalingGroupName = "${aws_autoscaling_group.bar.name}"
|
||||||
|
}
|
||||||
alarm_description = "This metric monitor ec2 cpu utilization"
|
alarm_description = "This metric monitor ec2 cpu utilization"
|
||||||
alarm_actions = ["${aws_autoscaling_policy.bat.arn}"]
|
alarm_actions = ["${aws_autoscaling_policy.bat.arn}"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user