diff --git a/tf_ecs_default_service/ecs_task_scaling.tf b/tf_ecs_default_service/ecs_task_scaling.tf index 82686f0..8763d72 100644 --- a/tf_ecs_default_service/ecs_task_scaling.tf +++ b/tf_ecs_default_service/ecs_task_scaling.tf @@ -68,7 +68,7 @@ resource "aws_cloudwatch_metric_alarm" "default_service_cpu_low" { namespace = "AWS/ECS" period = "300" statistic = "Average" - threshold = "${container_cpu_scale_in}" + threshold = "${var.container_cpu_scale_in}" dimensions { ClusterName = "${var.cluster_name}" diff --git a/tf_ecs_service/ecs_task_scaling.tf b/tf_ecs_service/ecs_task_scaling.tf index f812f44..5ab5b15 100644 --- a/tf_ecs_service/ecs_task_scaling.tf +++ b/tf_ecs_service/ecs_task_scaling.tf @@ -68,7 +68,7 @@ resource "aws_cloudwatch_metric_alarm" "default_service_cpu_low" { namespace = "AWS/ECS" period = "300" statistic = "Average" - threshold = "${container_cpu_scale_in}" + threshold = "${var.container_cpu_scale_in}" dimensions { ClusterName = "${var.cluster_name}"