Skip to content

Commit

Permalink
Fix cpu-scaling module
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrondelez committed Jan 15, 2021
1 parent 7bb2e2b commit 72b8dd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
2 changes: 1 addition & 1 deletion scaling/versions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
terraform {
required_version = ">= 0.12"
required_version = "~> 0.14"
}

0 comments on commit 72b8dd3

Please sign in to comment.