diff --git a/modules/sentinel-scheduled-alert-rule/main.tf b/modules/sentinel-scheduled-alert-rule/main.tf index 84dc946..b4c98d3 100644 --- a/modules/sentinel-scheduled-alert-rule/main.tf +++ b/modules/sentinel-scheduled-alert-rule/main.tf @@ -52,7 +52,7 @@ resource "azurerm_sentinel_alert_rule_scheduled" "rule" { } dynamic "entity_mapping" { - for_each = var.entity_mappings + for_each = var.entity_mappings == null ? [] : var.entity_mappings content { entity_type = entity_mapping.value["entityType"] dynamic "field_mapping" {