Skip to content

Commit

Permalink
Merge pull request #15 from clouddrove/Issue-Hurodata-69
Browse files Browse the repository at this point in the history
fix: Used join function to fix vault id argument
  • Loading branch information
d4kverma authored May 23, 2023
2 parents 4bdc4e4 + ea8b534 commit b5c0ece
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 b5c0ece

Please sign in to comment.