forked from aztfmod/terraform-azurerm-caf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cognitive_service.tf
14 lines (12 loc) · 909 Bytes
/
cognitive_service.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
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
}
output "cognitive_services_account" {
value = module.cognitive_services_account
}