diff --git a/modules/billing-account/factory.tf b/modules/billing-account/factory.tf index 097627e43..343cfdca8 100644 --- a/modules/billing-account/factory.tf +++ b/modules/billing-account/factory.tf @@ -82,7 +82,7 @@ check "factory_budgets" { assert { condition = alltrue([ for k, v in local.factory_budgets : - v.threshold_rules == null || try(v.threshold_rules.percent, null) != null + v.threshold_rules == null || try(v.threshold_rules[*].percent, null) != null ]) error_message = "Threshold rules need percent set." }