-
Notifications
You must be signed in to change notification settings - Fork 6
/
outputs.tf
60 lines (49 loc) · 1.73 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
59
60
output "resource" {
description = "VPN Gateway resource object."
value = azurerm_virtual_network_gateway.main
}
output "id" {
description = "VPN Gateway ID."
value = azurerm_virtual_network_gateway.main.id
}
output "name" {
description = "VPN Gateway name."
value = azurerm_virtual_network_gateway.main.name
}
output "module_diagnostics" {
description = "Diagnostics settings module outputs."
value = module.diagnostics
}
output "subnet_id" {
description = "Dedicated subnet ID for the GW."
value = coalesce(var.subnet_id, one(module.subnet_gateway[*].id))
}
output "public_ip_name" {
description = "Azure VPN Gateway public IP resource name."
value = [for pip in azurerm_public_ip.main : pip.name]
}
output "public_ip_adresses" {
description = "Azure VPN Gateway public IPs."
value = [for pip in azurerm_public_ip.main : pip.ip_address]
}
output "resource_public_ip" {
description = "Azure VPN Gateway Public IP resource object."
value = azurerm_public_ip.main
}
output "local_gateway_names" {
description = "Azure VNET local Gateway names."
value = { for k, v in azurerm_local_network_gateway.main : k => v.name }
}
output "local_gateway_ids" {
description = "Azure VNET local Gateway IDs."
value = { for k, v in azurerm_local_network_gateway.main : k => v.id }
}
output "vpn_connection_ids" {
description = "The VPN created connections IDs."
value = { for k, v in azurerm_virtual_network_gateway_connection.main : k => v.id }
}
output "shared_keys" {
description = "Shared Keys used for VPN connections."
value = { for v in var.vpn_connections : v.name => try(random_password.main[v.name].result, v.shared_key) }
sensitive = true
}