diff --git a/modules/sentinel-watchlist/main.tf b/modules/sentinel-watchlist/main.tf index db1b7be..893e841 100644 --- a/modules/sentinel-watchlist/main.tf +++ b/modules/sentinel-watchlist/main.tf @@ -20,7 +20,7 @@ resource "azurerm_sentinel_watchlist" "watchlist" { } resource "azurerm_sentinel_watchlist_item" "watchlist_item" { - for_each = var.properties + for_each = { for index, elem in var.properties : index => elem } watchlist_id = azurerm_sentinel_watchlist.watchlist.id properties = each.value }