-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathoutputs.tf
58 lines (48 loc) · 2.42 KB
/
outputs.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
output "firewall_ip_addresses" {
description = "Azure Firewall IP addresses."
value = var.firewalls != null ? { for key, value in module.firewalls.resource_object : key => {
firewall_key = key
private_ip_address = module.firewalls.resource_object[key].virtual_hub[0].private_ip_address
public_ip_addresses = module.firewalls.resource_object[key].virtual_hub[0].public_ip_addresses
} } : null
}
output "p2s_vpn_gw_id" {
description = "P2S VPN Gateway ID"
value = var.p2s_gateways != null ? [for gw in azurerm_point_to_site_vpn_gateway.p2s_gateway : gw.id] : null
}
output "p2s_vpn_gw_resource_ids" {
description = "A map of point to site VPN gateway names with the map keys of the `p2s_gateways` variable."
value = var.p2s_gateways != null ? { for key, value in azurerm_point_to_site_vpn_gateway.p2s_gateway : key => value.id } : null
}
output "p2s_vpn_gw_resource_names" {
description = "A map of point to site VPN gateway names with the map keys of the `p2s_gateways` variable."
value = var.p2s_gateways != null ? { for key, value in azurerm_point_to_site_vpn_gateway.p2s_gateway : key => value.id } : null
}
output "resource" {
description = "The full resource outputs."
value = merge(azurerm_virtual_wan.virtual_wan, module.virtual_hubs)
}
output "resource_group_name" {
description = "Resource Group Name"
value = local.resource_group_name
}
output "s2s_vpn_gw" {
description = "S2S VPN Gateway Objects"
value = var.vpn_gateways != null ? [for gw in module.vpn_gateway.resource_object : gw] : null
}
output "s2s_vpn_gw_id" {
description = "S2S VPN Gateway ID"
value = var.vpn_gateways != null ? [for gw in module.vpn_gateway.resource_object : gw.id] : null
}
output "virtual_wan_id" {
description = "Virtual WAN ID"
value = azurerm_virtual_wan.virtual_wan != null ? azurerm_virtual_wan.virtual_wan.id : null
}
output "vpn_gateway_resource_ids" {
description = "A map of Azure VPN Gateway resource IDs with the map keys of the `vpn_gateways` variable."
value = var.vpn_gateways != null ? { for key, value in module.vpn_gateway.resource_object : key => value.id } : null
}
output "vpn_gateway_resource_names" {
description = "A map of Azure VPN Gateway resource names with the map keys of the `vpn_gateways` variable."
value = var.vpn_gateways != null ? { for key, value in module.vpn_gateway.resource_object : key => value.id } : null
}