forked from aztfmod/terraform-azurerm-caf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecovery_vaults.tf
executable file
·23 lines (19 loc) · 1.03 KB
/
recovery_vaults.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module "recovery_vaults" {
source = "./modules/recovery_vault"
for_each = local.shared_services.recovery_vaults
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
diagnostics = local.combined_diagnostics
identity = try(each.value.identity, null)
resource_groups = module.resource_groups
resource_group_name = module.resource_groups[each.value.resource_group_key].name
location = lookup(each.value, "region", null) == null ? module.resource_groups[each.value.resource_group_key].location : local.global_settings.regions[each.value.region]
vnets = try(local.combined_objects_networking, {})
private_endpoints = try(each.value.private_endpoints, {})
private_dns = local.combined_objects_private_dns
base_tags = try(local.global_settings.inherit_tags, false) ? module.resource_groups[each.value.resource_group_key].tags : {}
}
output "recovery_vaults" {
value = module.recovery_vaults
}