-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutput.tf
More file actions
124 lines (115 loc) · 3.79 KB
/
Copy pathoutput.tf
File metadata and controls
124 lines (115 loc) · 3.79 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
output "load_balancer_id" {
description = "The ID of the Load Balancer"
value = azurerm_lb.main.id
}
output "load_balancer_frontend_ip_configuration_ids" {
description = "The IDs of the Load Balancer frontend IP configurations"
value = [
for config in azurerm_lb.main.frontend_ip_configuration :
config.id
]
}
output "public_ip_id" {
description = "The ID of the Public IP"
value = azurerm_public_ip.main.id
}
output "public_ip_address" {
description = "The IP address of the Public IP"
value = azurerm_public_ip.main.ip_address
}
output "public_ip_prefix_id" {
description = "The ID of the Public IP Prefix, if used"
value = azurerm_public_ip.main.public_ip_prefix_id
}
output "load_balancer_rules" {
description = "A list of Load Balancer rules with their details"
value = [
for rule in azurerm_lb_rule.main :
{
name = rule.name
protocol = rule.protocol
frontend_port = rule.frontend_port
backend_port = rule.backend_port
frontend_ip_configuration_name = rule.frontend_ip_configuration_name
backend_address_pool_ids = rule.backend_address_pool_ids
probe_id = rule.probe_id
load_distribution = rule.load_distribution
idle_timeout_in_minutes = rule.idle_timeout_in_minutes
enable_floating_ip = rule.enable_floating_ip
disable_outbound_snat = rule.disable_outbound_snat
}
]
}
output "load_balancer_probe_ids" {
description = "The IDs of the Load Balancer probes"
value = [
for probe in azurerm_lb_probe.main : probe.id
]
}
output "load_balancer_probe_details" {
description = "Details of the Load Balancer probes"
value = [
for probe in azurerm_lb_probe.main :
{
name = probe.name
id = probe.id
protocol = probe.protocol
port = probe.port
probe_threshold = probe.probe_threshold
request_path = probe.request_path
interval_in_seconds = probe.interval_in_seconds
number_of_probes = probe.number_of_probes
}
]
}
output "lb_backend_address_pool_ids" {
description = "The IDs of the Load Balancer Backend Address Pools"
value = [
for pool in azurerm_lb_backend_address_pool.main : pool.id
]
}
output "lb_backend_address_pool_details" {
description = "Details of the Load Balancer Backend Address Pools"
value = [
for pool in azurerm_lb_backend_address_pool.main :
{
name = pool.name
id = pool.id
virtual_network_id = pool.virtual_network_id
tunnel_interfaces = [
for ti in pool.tunnel_interface :
{
identifier = ti.identifier
type = ti.type
protocol = ti.protocol
port = ti.port
}
]
}
]
}
output "load_balancer_outbound_rule_ids" {
description = "The IDs of the Load Balancer Outbound Rules"
value = [
for rule in azurerm_lb_outbound_rule.main : rule.id
]
}
output "load_balancer_outbound_rules" {
description = "Detailed information about the Load Balancer Outbound Rules"
value = [
for rule in azurerm_lb_outbound_rule.main : {
name = rule.name
id = rule.id
backend_address_pool_id = rule.backend_address_pool_id
protocol = rule.protocol
enable_tcp_reset = rule.enable_tcp_reset
allocated_outbound_ports = rule.allocated_outbound_ports
idle_timeout_in_minutes = rule.idle_timeout_in_minutes
frontend_ip_configurations = [
for config in rule.frontend_ip_configuration : {
name = config.name
}
]
}
]
}