@@ -6,29 +6,32 @@ module "app_services" {
66 depends_on = [module . networking ]
77 for_each = local. webapp . app_services
88
9- name = each. value . name
10- client_config = local. client_config
11- location = can (local. global_settings . regions [each . value . region ]) ? local. global_settings . regions [each . value . region ] : 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
12- 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 ) : 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
13- app_service_plan_id = can (each. value . app_service_plan_id ) ? each. value . app_service_plan_id : local. combined_objects_app_service_plans [try (each. value . lz_key , local. client_config . landingzone_key )][each . value . app_service_plan_key ]. id
14- settings = each. value . settings
15- identity = try (each. value . identity , null )
16- connection_strings = try (each. value . connection_strings , {})
17- app_settings = try (each. value . app_settings , null )
18- slots = try (each. value . slots , {})
19- global_settings = local. global_settings
20- dynamic_app_settings = try (each. value . dynamic_app_settings , {})
21- combined_objects = local. dynamic_app_settings_combined_objects
22- base_tags = try (local. global_settings . inherit_tags , false ) ? try (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 )]. tags , {}) : {}
23- application_insight = try (each. value . application_insight_key , null ) == null ? null : module. azurerm_application_insights [each . value . application_insight_key ]
24- diagnostic_profiles = try (each. value . diagnostic_profiles , null )
25- diagnostics = local. combined_diagnostics
26- storage_accounts = local. combined_objects_storage_accounts
27- tags = try (each. value . tags , null )
28- private_endpoints = try (each. value . private_endpoints , {})
29- vnets = local. combined_objects_networking
30- subnet_id = can (each. value . subnet_id ) || can (each. value . vnet_key ) == false ? try (each. value . subnet_id , null ) : local. combined_objects_networking [try (each. value . lz_key , local. client_config . landingzone_key )][each . value . vnet_key ]. subnets [each . value . subnet_key ]. id
31- private_dns = local. combined_objects_private_dns
9+ name = each. value . name
10+ client_config = local. client_config
11+ location = can (local. global_settings . regions [each . value . region ]) ? local. global_settings . regions [each . value . region ] : 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
12+ 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 ) : 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
13+ app_service_plan_id = can (each. value . app_service_plan_id ) ? each. value . app_service_plan_id : local. combined_objects_app_service_plans [try (each. value . lz_key , local. client_config . landingzone_key )][each . value . app_service_plan_key ]. id
14+ settings = each. value . settings
15+ identity = try (each. value . identity , null )
16+ connection_strings = try (each. value . connection_strings , {})
17+ app_settings = try (each. value . app_settings , null )
18+ slots = try (each. value . slots , {})
19+ global_settings = local. global_settings
20+ dynamic_app_settings = try (each. value . dynamic_app_settings , {})
21+ combined_objects = local. dynamic_app_settings_combined_objects
22+ base_tags = try (local. global_settings . inherit_tags , false ) ? try (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 )]. tags , {}) : {}
23+ application_insight = try (each. value . application_insight_key , null ) == null ? null : module. azurerm_application_insights [each . value . application_insight_key ]
24+ diagnostic_profiles = try (each. value . diagnostic_profiles , null )
25+ diagnostics = local. combined_diagnostics
26+ storage_accounts = local. combined_objects_storage_accounts
27+ tags = try (each. value . tags , null )
28+ private_endpoints = try (each. value . private_endpoints , {})
29+ vnets = local. combined_objects_networking
30+ subnet_id = can (each. value . subnet_id ) || can (each. value . vnet_key ) == false ? try (each. value . subnet_id , null ) : local. combined_objects_networking [try (each. value . lz_key , local. client_config . landingzone_key )][each . value . vnet_key ]. subnets [each . value . subnet_key ]. id
31+ private_dns = local. combined_objects_private_dns
32+ azuread_applications = local. combined_objects_azuread_applications
33+ azuread_service_principal_passwords = local. combined_objects_azuread_service_principal_passwords
34+
3235}
3336
3437output "app_services" {
0 commit comments