Skip to content

Commit

Permalink
fix bug in asg module after upgrade to tf 0.12 as per hashicorp/terra…
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Venturelli authored Jun 24, 2019
1 parent f97842f commit 5b882c0
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 @@ -10,7 +10,7 @@ resource "aws_cloudwatch_metric_alarm" "alarm_down" {
threshold = var.threshold_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 @@ -29,7 +29,7 @@ resource "aws_cloudwatch_metric_alarm" "alarm_up" {
threshold = var.threshold_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 5b882c0

Please sign in to comment.