forked from aztfmod/terraform-azurerm-caf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compute_wvd_application_groups.tf
20 lines (17 loc) · 1.33 KB
/
compute_wvd_application_groups.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module "wvd_application_groups" {
source = "./modules/compute/wvd_application_group"
for_each = local.compute.wvd_application_groups
global_settings = local.global_settings
settings = each.value
host_pool_id = can(each.value.host_pool_id) ? each.value.host_pool_id : local.combined_objects_wvd_host_pools[try(each.value.lz_key, local.client_config.landingzone_key)][each.value.host_pool_key].id
workspace_id = can(each.value.workspace_id) ? each.value.workspace_id : local.combined_objects_wvd_workspaces[try(each.value.lz_key, local.client_config.landingzone_key)][each.value.wvd_workspace_key].id
diagnostic_profiles = try(each.value.diagnostic_profiles, {})
diagnostics = local.combined_diagnostics
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 = can(each.value.resource_group.name) || can(each.value.resource_group_name) ? try(each.value.resource_group.name, each.value.resource_group_name) : null
location = try(local.global_settings.regions[each.value.region], null)
}
output "wvd_application_groups" {
value = module.wvd_application_groups
}