diff --git a/resources.policy_assignments.tf b/resources.policy_assignments.tf index 2a448e9b..2c8c35a9 100644 --- a/resources.policy_assignments.tf +++ b/resources.policy_assignments.tf @@ -25,8 +25,8 @@ resource "azurerm_management_group_policy_assignment" "enterprise_scale" { dynamic "selectors" { for_each = try({ for i, selector in overrides.value.selectors : i => selector }, local.empty_map) content { - in = try(selectors.in, local.empty_list) - not_in = try(selectors.not_in, local.empty_list) + in = try(selectors.value.in, local.empty_list) + not_in = try(selectors.value.not_in, local.empty_list) } } }