Skip to content

Commit 41a73a4

Browse files
authored
fix: [DTOSS-11762] remove circular dependency between the action group and key vault (#1775)
fix: add a dependency on the key vault in the action group module and data sources
1 parent 8790649 commit 41a73a4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

infrastructure/tf-core/data.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,19 @@ data "azurerm_key_vault" "infra" {
7171

7272
name = module.regions_config[each.key].names.key-vault
7373
resource_group_name = azurerm_resource_group.core[each.key].name
74+
75+
depends_on = [
76+
module.key_vault
77+
]
7478
}
7579

7680
data "azurerm_key_vault_secret" "monitoring_email_address" {
7781
for_each = var.features.alerts_enabled && var.key_vault != {} ? var.regions : {}
7882

7983
name = "monitoring-email-address"
8084
key_vault_id = data.azurerm_key_vault.infra[each.key].id
85+
86+
depends_on = [
87+
module.key_vault
88+
]
8189
}

infrastructure/tf-core/monitor_action_group.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@ module "monitor_action_group_performance" {
2020
email_address = data.azurerm_key_vault_secret.monitoring_email_address[local.primary_region].value
2121
}
2222
}
23+
24+
depends_on = [
25+
module.key_vault
26+
]
2327
}

0 commit comments

Comments
 (0)