Skip to content

Commit

Permalink
fix: Used join function to fix vault id argument
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgadgi committed May 23, 2023
1 parent 4bdc4e4 commit ea8b534
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -307,4 +307,4 @@ resource "azurerm_monitor_diagnostic_setting" "pe_kv_nic" {
lifecycle {
ignore_changes = [log_analytics_destination_type]
}
}
}

0 comments on commit ea8b534

Please sign in to comment.