diff --git a/workers.tf b/workers.tf index 610c41709e..4e9b152f80 100644 --- a/workers.tf +++ b/workers.tf @@ -103,7 +103,14 @@ resource "aws_autoscaling_group" "workers" { "capacity_rebalance", local.workers_group_defaults["capacity_rebalance"] ) - + timeouts { + delete = lookup( + lookup( + var.worker_groups[count.index], + "timeouts", + local.workers_group_defaults["timeouts"] + ), "delete", null) + } dynamic "initial_lifecycle_hook" { for_each = var.worker_create_initial_lifecycle_hooks ? lookup(var.worker_groups[count.index], "asg_initial_lifecycle_hooks", local.workers_group_defaults["asg_initial_lifecycle_hooks"]) : [] content { diff --git a/workers_launch_template.tf b/workers_launch_template.tf index df2928dc5d..5bbfd59f2b 100644 --- a/workers_launch_template.tf +++ b/workers_launch_template.tf @@ -102,6 +102,14 @@ resource "aws_autoscaling_group" "workers_launch_template" { "capacity_rebalance", local.workers_group_defaults["capacity_rebalance"] ) + timeouts { + delete = lookup( + lookup( + var.worker_groups_launch_template[count.index], + "timeouts", + local.workers_group_defaults["timeouts"] + ), "delete", null) + } dynamic "mixed_instances_policy" { iterator = item