Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
This reverts commit 9e621a9.
  • Loading branch information
simonrondelez committed Jan 15, 2021
1 parent 9e621a9 commit 7bb2e2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scaling/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resource "aws_cloudwatch_metric_alarm" "alarm_down" {
datapoints_to_alarm = var.datapoints_to_alarm_down

dimensions = {
var.dimension_name = coalesce(var.dimension_value, var.autoscaling_group_names[count.index])
"${var.dimension_name}" = coalesce(var.dimension_value, var.autoscaling_group_names[count.index])
}

alarm_description = "This metric monitors CPU utilization down"
Expand All @@ -31,7 +31,7 @@ resource "aws_cloudwatch_metric_alarm" "alarm_up" {
datapoints_to_alarm = var.datapoints_to_alarm_up

dimensions = {
var.dimension_name = coalesce(var.dimension_value, var.autoscaling_group_names[count.index])
"${var.dimension_name}" = coalesce(var.dimension_value, var.autoscaling_group_names[count.index])
}

alarm_description = "This metric monitors CPU utilization up"
Expand Down

0 comments on commit 7bb2e2b

Please sign in to comment.