diff --git a/scaling/main.tf b/scaling/main.tf index e61a35a..1e5d314 100644 --- a/scaling/main.tf +++ b/scaling/main.tf @@ -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" @@ -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" diff --git a/scaling/versions.tf b/scaling/versions.tf index d9b6f79..8058b64 100644 --- a/scaling/versions.tf +++ b/scaling/versions.tf @@ -1,3 +1,3 @@ terraform { - required_version = ">= 0.12" + required_version = "~> 0.14" }