forked from aztfmod/terraform-azurerm-caf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app_service_environments.tf
executable file
·29 lines (23 loc) · 1.92 KB
/
app_service_environments.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
25
26
27
28
29
module "app_service_environments" {
source = "./modules/webapps/ase"
for_each = local.webapp.app_service_environments
settings = each.value
resource_group_name = local.resource_groups[each.value.resource_group_key].name
location = lookup(each.value, "region", null) == null ? local.resource_groups[each.value.resource_group_key].location : local.global_settings.regions[each.value.region]
tags = try(each.value.tags, null)
base_tags = try(local.global_settings.inherit_tags, false) ? local.resource_groups[each.value.resource_group_key].tags : {}
name = each.value.name
kind = try(each.value.kind, "ASEV2")
zone = try(each.value.zone, null)
subnet_id = lookup(each.value, "lz_key", null) == null ? local.combined_objects_networking[local.client_config.landingzone_key][each.value.vnet_key].subnets[each.value.subnet_key].id : local.combined_objects_networking[each.value.lz_key][each.value.vnet_key].subnets[each.value.subnet_key].id
subnet_name = lookup(each.value, "lz_key", null) == null ? local.combined_objects_networking[local.client_config.landingzone_key][each.value.vnet_key].subnets[each.value.subnet_key].name : local.combined_objects_networking[each.value.lz_key][each.value.vnet_key].subnets[each.value.subnet_key].name
internalLoadBalancingMode = each.value.internalLoadBalancingMode
front_end_size = try(each.value.front_end_size, "Standard_D1_V2")
diagnostic_profiles = try(each.value.diagnostic_profiles, null)
diagnostics = local.combined_diagnostics
global_settings = local.global_settings
private_dns = lookup(each.value, "private_dns_records", null) == null ? {} : local.combined_objects_private_dns
}
output "app_service_environments" {
value = module.app_service_environments
}