We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
null
length
1 parent f29f8f0 commit 6346613Copy full SHA for 6346613
modules/capacity-provider/main.tf
@@ -11,7 +11,7 @@ resource "aws_ecs_capacity_provider" "this" {
11
auto_scaling_group_arn = coalesce(each.value.auto_scaling_group_arn, var.default_auto_scaling_group_arn)
12
13
dynamic "managed_scaling" {
14
- for_each = length(try(each.value.managed_scaling, {})) > 0 ? [1] : []
+ for_each = (try(each.value.managed_scaling, null) != null && length(try(each.value.managed_scaling, {})) > 0) ? [1] : []
15
16
content {
17
instance_warmup_period = each.value.managed_scaling.instance_warmup_period
0 commit comments