diff --git a/templates/platform_landing_zone/modules/hub-and-spoke-vnet/outputs.tf b/templates/platform_landing_zone/modules/hub-and-spoke-vnet/outputs.tf index 1a1f3d1..8f05cc4 100644 --- a/templates/platform_landing_zone/modules/hub-and-spoke-vnet/outputs.tf +++ b/templates/platform_landing_zone/modules/hub-and-spoke-vnet/outputs.tf @@ -1,3 +1,3 @@ -output "dns_server_ip_addresses" { - value = { for key, value in local.hub_virtual_networks : key => try(value.hub_router_ip_address, try(module.hub_and_spoke_vnet.firewalls[key].private_ip_address, null)) } -} \ No newline at end of file +output "dns_server_ip_addresses" { + value = { for key, value in local.hub_virtual_networks : key => try(value.hub_router_ip_address, try(module.hub_and_spoke_vnet.firewalls[key].private_ip_address, null)) } +} diff --git a/templates/platform_landing_zone/modules/virtual-wan/local.gateways.tf b/templates/platform_landing_zone/modules/virtual-wan/local.gateways.tf index 864643d..2869f60 100644 --- a/templates/platform_landing_zone/modules/virtual-wan/local.gateways.tf +++ b/templates/platform_landing_zone/modules/virtual-wan/local.gateways.tf @@ -1,12 +1,12 @@ -locals { - virtual_network_gateways_express_route = { - for virtual_hub_key, virtual_hub_value in var.virtual_hubs : virtual_hub_key => merge({ - virtual_hub_key = virtual_hub_key - }, virtual_hub_value.virtual_network_gateways.express_route) if try(virtual_hub_value.virtual_network_gateways.express_route, null) != null - } - virtual_network_gateways_vpn = { - for virtual_hub_key, virtual_hub_value in var.virtual_hubs : virtual_hub_key => merge({ - virtual_hub_key = virtual_hub_key - }, virtual_hub_value.virtual_network_gateways.vpn) if try(virtual_hub_value.virtual_network_gateways.vpn, null) != null - } -} +locals { + virtual_network_gateways_express_route = { + for virtual_hub_key, virtual_hub_value in var.virtual_hubs : virtual_hub_key => merge({ + virtual_hub_key = virtual_hub_key + }, virtual_hub_value.virtual_network_gateways.express_route) if try(virtual_hub_value.virtual_network_gateways.express_route, null) != null + } + virtual_network_gateways_vpn = { + for virtual_hub_key, virtual_hub_value in var.virtual_hubs : virtual_hub_key => merge({ + virtual_hub_key = virtual_hub_key + }, virtual_hub_value.virtual_network_gateways.vpn) if try(virtual_hub_value.virtual_network_gateways.vpn, null) != null + } +} diff --git a/templates/platform_landing_zone/modules/virtual-wan/outputs.tf b/templates/platform_landing_zone/modules/virtual-wan/outputs.tf index e306686..e0170c7 100644 --- a/templates/platform_landing_zone/modules/virtual-wan/outputs.tf +++ b/templates/platform_landing_zone/modules/virtual-wan/outputs.tf @@ -1,3 +1,3 @@ -output "dns_server_ip_addresses" { - value = { for key, value in local.virtual_hubs : key => try(module.hub_and_spoke_vnet.firewall_ip_addresses_by_hub_key[key].private_ip_address, null) } -} \ No newline at end of file +output "dns_server_ip_addresses" { + value = { for key, value in local.virtual_hubs : key => try(module.hub_and_spoke_vnet.firewall_ip_addresses_by_hub_key[key].private_ip_address, null) } +} diff --git a/templates/platform_landing_zone/outputs.tf b/templates/platform_landing_zone/outputs.tf index 2c8ee35..18dd70f 100644 --- a/templates/platform_landing_zone/outputs.tf +++ b/templates/platform_landing_zone/outputs.tf @@ -1,3 +1,3 @@ -output "dns_server_ip_addresses" { - value = var.connectivity_type == "none" ? {} : (var.connectivity_type == "hub-and-spoke" ? module.hub_and_spoke_vnet.dns_server_ip_addresses : module.virtual_wan.dns_server_ip_addresses) -} \ No newline at end of file +output "dns_server_ip_addresses" { + value = var.connectivity_type == "none" ? {} : (var.connectivity_type == "hub-and-spoke" ? module.hub_and_spoke_vnet.dns_server_ip_addresses : module.virtual_wan.dns_server_ip_addresses) +}