-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathoutputs.tf
160 lines (129 loc) · 6.43 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
output "appgw_id" {
description = "The ID of the Application Gateway."
value = azurerm_application_gateway.app_gateway.id
}
output "appgw_name" {
description = "The name of the Application Gateway."
value = local.appgw_name
}
output "appgw_subnet_id" {
description = "The ID of the subnet where the Application Gateway is attached."
value = try(module.azure_network_subnet["appgw_subnet"].subnet_id, var.subnet_id)
}
output "appgw_subnet_name" {
description = "The name of the subnet where the Application Gateway is attached."
value = try(module.azure_network_subnet["appgw_subnet"].subnet_names, reverse(split("/", var.subnet_id))[0])
}
output "appgw_nsg_id" {
description = "The ID of the network security group from the subnet where the Application Gateway is attached."
value = var.create_nsg == true ? module.azure_network_security_group["appgw_nsg"].network_security_group_id : null
}
output "appgw_nsg_name" {
description = "The name of the network security group from the subnet where the Application Gateway is attached."
value = var.create_nsg == true ? module.azure_network_security_group["appgw_nsg"].network_security_group_name : null
}
output "appgw_public_ip_address" {
description = "The public IP address of Application Gateway."
value = azurerm_public_ip.ip.ip_address
}
output "appgw_public_ip_fqdn" {
description = "Fully qualified domain name of the A DNS record associated with the public IP."
value = azurerm_public_ip.ip.fqdn
}
output "appgw_public_ip_domain_name" {
description = "Domain Name part from FQDN of the A DNS record associated with the public IP."
value = local.ip_label
}
output "appgw_backend_address_pool_ids" {
description = "List of backend address pool Ids."
value = azurerm_application_gateway.app_gateway.backend_address_pool[*].id
}
output "appgw_backend_http_settings_ids" {
description = "List of backend HTTP settings Ids."
value = azurerm_application_gateway.app_gateway.backend_http_settings[*].id
}
output "appgw_backend_http_settings_probe_ids" {
description = "List of probe Ids from backend HTTP settings."
value = azurerm_application_gateway.app_gateway.backend_http_settings[*].probe_id
}
output "appgw_frontend_ip_configuration_ids" {
description = "List of frontend IP configuration Ids."
value = azurerm_application_gateway.app_gateway.frontend_ip_configuration[*].id
}
output "appgw_frontend_port_ids" {
description = "List of frontend port Ids."
value = azurerm_application_gateway.app_gateway.frontend_port[*].id
}
output "appgw_gateway_ip_configuration_ids" {
description = "List of IP configuration Ids."
value = azurerm_application_gateway.app_gateway.gateway_ip_configuration[*].id
}
output "appgw_http_listener_ids" {
description = "List of HTTP listener Ids."
value = azurerm_application_gateway.app_gateway.http_listener[*].id
}
output "appgw_http_listener_frontend_ip_configuration_ids" {
description = "List of frontend IP configuration Ids from HTTP listeners."
value = azurerm_application_gateway.app_gateway.http_listener[*].frontend_ip_configuration_id
}
output "appgw_http_listener_frontend_port_ids" {
description = "List of frontend port Ids from HTTP listeners."
value = azurerm_application_gateway.app_gateway.http_listener[*].frontend_port_id
}
output "appgw_request_routing_rule_ids" {
description = "List of request routing rules Ids."
value = azurerm_application_gateway.app_gateway.request_routing_rule[*].id
}
output "appgw_request_routing_rule_http_listener_ids" {
description = "List of HTTP listener Ids attached to request routing rules."
value = azurerm_application_gateway.app_gateway.request_routing_rule[*].http_listener_id
}
output "appgw_request_routing_rule_backend_address_pool_ids" {
description = "List of backend address pool Ids attached to request routing rules."
value = azurerm_application_gateway.app_gateway.request_routing_rule[*].backend_address_pool_id
}
output "appgw_request_routing_rule_backend_http_settings_ids" {
description = "List of HTTP settings Ids attached to request routing rules."
value = azurerm_application_gateway.app_gateway.request_routing_rule[*].backend_http_settings_id
}
output "appgw_request_routing_rule_redirect_configuration_ids" {
description = "List of redirect configuration Ids attached to request routing rules."
value = azurerm_application_gateway.app_gateway.request_routing_rule[*].redirect_configuration_id
}
output "appgw_request_routing_rule_rewrite_rule_set_ids" {
description = "List of rewrite rule set Ids attached to request routing rules."
value = azurerm_application_gateway.app_gateway.request_routing_rule[*].rewrite_rule_set_id
}
output "appgw_request_routing_rule_url_path_map_ids" {
description = "List of URL path map Ids attached to request routing rules."
value = azurerm_application_gateway.app_gateway.request_routing_rule[*].url_path_map_id
}
output "appgw_ssl_certificate_ids" {
description = "List of SSL certificate Ids."
value = azurerm_application_gateway.app_gateway.ssl_certificate[*].id
sensitive = true
}
output "appgw_url_path_map_ids" {
description = "List of URL path map Ids."
value = azurerm_application_gateway.app_gateway.url_path_map[*].id
}
output "appgw_url_path_map_default_backend_address_pool_ids" {
description = "List of default backend address pool Ids attached to URL path maps."
value = azurerm_application_gateway.app_gateway.url_path_map[*].default_backend_address_pool_id
}
output "appgw_url_path_map_default_backend_http_settings_ids" {
description = "List of default backend HTTP settings Ids attached to URL path maps."
value = azurerm_application_gateway.app_gateway.url_path_map[*].default_backend_http_settings_id
}
output "appgw_url_path_map_default_redirect_configuration_ids" {
description = "List of default redirect configuration Ids attached to URL path maps."
value = azurerm_application_gateway.app_gateway.url_path_map[*].default_redirect_configuration_id
}
output "appgw_custom_error_configuration_ids" {
description = "List of custom error configuration Ids."
value = azurerm_application_gateway.app_gateway.custom_error_configuration[*].id
}
output "appgw_redirect_configuration_ids" {
description = "List of redirect configuration Ids."
value = azurerm_application_gateway.app_gateway.redirect_configuration[*].id
}