From 3ce288988cbb296fef44279a7444b2660847a041 Mon Sep 17 00:00:00 2001 From: mgmuk <28368113+mgmuk@users.noreply.github.com> Date: Wed, 14 Aug 2024 08:48:09 +0100 Subject: [PATCH] Fix description when using additional_resource_groups loop https://github.com/castai/terraform-castai-aks/issues/74 (#78) Co-authored-by: mgmuk --- 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 }