diff --git a/iam.tf b/iam.tf index 57904eb..469656f 100644 --- a/iam.tf +++ b/iam.tf @@ -76,7 +76,7 @@ resource "azurerm_role_assignment" "castai_node_resource_group" { resource "azurerm_role_assignment" "castai_additional_resource_groups" { for_each = toset(var.additional_resource_groups) principal_id = azuread_service_principal.castai.id - description = "castai role assignment for resource group ${var.additional_resource_groups}" + description = "castai role assignment for resource group ${each.key}" role_definition_id = azurerm_role_definition.castai.role_definition_resource_id scope = each.key }