Skip to content

Commit

Permalink
Remove count
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmacedot committed Aug 26, 2024
1 parent 2bbeec4 commit aabe93a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion appautoscaling.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ resource "aws_appautoscaling_policy" "scale_custom" {

resource "aws_appautoscaling_scheduled_action" "scale_in_schedules" {
for_each = { for schedule in var.scale_in_schedules : schedule.name => schedule }
count = var.enable_schedule ? 1 : 0
name = "${var.name}-${each.value}-scale-in"
service_namespace = aws_appautoscaling_target.ecs[0].service_namespace
resource_id = aws_appautoscaling_target.ecs[0].resource_id
Expand Down

0 comments on commit aabe93a

Please sign in to comment.