From ea8b534954d51f99ac415848a7c962ca67bc112d Mon Sep 17 00:00:00 2001 From: nileshgadgi Date: Tue, 23 May 2023 17:30:08 +0530 Subject: [PATCH] fix: Used join function to fix vault id argument --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index e5debe3..4952cdc 100644 --- a/main.tf +++ b/main.tf @@ -69,7 +69,7 @@ resource "azurerm_key_vault" "key_vault" { resource "azurerm_key_vault_secret" "key_vault_secret" { depends_on = [azurerm_key_vault.key_vault, azurerm_role_assignment.rbac_user_assigned] for_each = var.secrets - key_vault_id = azurerm_key_vault.key_vault.*.id + key_vault_id = join("", azurerm_key_vault.key_vault.*.id) name = each.key value = each.value tags = module.labels.tags @@ -307,4 +307,4 @@ resource "azurerm_monitor_diagnostic_setting" "pe_kv_nic" { lifecycle { ignore_changes = [log_analytics_destination_type] } -} +} \ No newline at end of file