We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fff7f83 commit 9897d56Copy full SHA for 9897d56
main.tf
@@ -124,7 +124,7 @@ resource "aws_appautoscaling_policy" "up" {
124
}
125
126
resource "aws_appautoscaling_policy" "down" {
127
- count = var.disable_auto_scaling ? 1 : 0
+ count = var.disable_auto_scaling ? 0 : 1
128
name = "appScalingPolicy${title(var.environment)}${title(var.service_name)}ScaleDown"
129
service_namespace = "ecs"
130
resource_id = "service/${var.cluster_name}/${aws_ecs_service.main.name}"
0 commit comments