-
Notifications
You must be signed in to change notification settings - Fork 709
/
cognitive_service.tf
24 lines (21 loc) · 1.56 KB
/
cognitive_service.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module "cognitive_services_account" {
source = "./modules/cognitive_services/cognitive_services_account"
for_each = local.cognitive_services.cognitive_services_account
client_config = local.client_config
global_settings = local.global_settings
base_tags = local.global_settings.inherit_tags
resource_group = local.combined_objects_resource_groups[try(each.value.resource_group.lz_key, local.client_config.landingzone_key)][try(each.value.resource_group_key, each.value.resource_group.key)]
resource_group_name = local.combined_objects_resource_groups[try(each.value.resource_group.lz_key, local.client_config.landingzone_key)][try(each.value.resource_group.key, each.value.resource_group_key)].name
location = lookup(each.value, "region", null) == null ? local.combined_objects_resource_groups[try(each.value.resource_group.lz_key, local.client_config.landingzone_key)][try(each.value.resource_group.key, each.value.resource_group_key)].location : local.global_settings.regions[each.value.region]
settings = each.value
resource_groups = local.combined_objects_resource_groups
vnets = local.combined_objects_networking
private_endpoints = try(each.value.private_endpoints, {})
private_dns = local.combined_objects_private_dns
diagnostics = local.combined_diagnostics
diagnostic_profiles = try(each.value.diagnostic_profiles, {})
managed_identities = local.combined_objects_managed_identities
}
output "cognitive_services_account" {
value = module.cognitive_services_account
}