From 7f783196afe0ef9b4061e1872a74108efcc1e1e4 Mon Sep 17 00:00:00 2001 From: mgmuk Date: Fri, 2 Aug 2024 12:12:57 +0100 Subject: [PATCH] Fix description when using additional_resource_groups loop https://github.com/castai/terraform-castai-aks/issues/74 --- iam.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }