-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
variables.tf
294 lines (261 loc) · 9.07 KB
/
variables.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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
variable "create_resource_group" {
description = "Whether to create resource group and use it for all networking resources"
default = false
}
variable "resource_group_name" {
description = "A container that holds related resources for an Azure solution"
default = ""
}
variable "location" {
description = "The location/region to keep all your network resources. To get the list of all locations with table format from azure cli, run 'az account list-locations -o table'"
default = ""
}
variable "virtual_network_name" {
description = "The name of the virtual network"
default = ""
}
variable "vnet_resource_group_name" {
description = "The resource group name where the virtual network is created"
default = null
}
variable "subnet_name" {
description = "The name of the subnet to use in VM scale set"
default = ""
}
variable "app_gateway_name" {
description = "The name of the application gateway"
default = ""
}
variable "log_analytics_workspace_name" {
description = "The name of log analytics workspace name"
default = null
}
variable "storage_account_name" {
description = "The name of the hub storage account to store logs"
default = null
}
variable "domain_name_label" {
description = "Label for the Domain Name. Will be used to make up the FQDN."
default = null
}
variable "enable_http2" {
description = "Is HTTP2 enabled on the application gateway resource?"
default = false
}
variable "zones" {
description = "A collection of availability zones to spread the Application Gateway over."
type = list(string)
default = [] #["1", "2", "3"]
}
variable "firewall_policy_id" {
description = "The ID of the Web Application Firewall Policy which can be associated with app gateway"
default = null
}
variable "sku" {
description = "The sku pricing model of v1 and v2"
type = object({
name = string
tier = string
capacity = optional(number)
})
}
variable "autoscale_configuration" {
description = "Minimum or Maximum capacity for autoscaling. Accepted values are for Minimum in the range 0 to 100 and for Maximum in the range 2 to 125"
type = object({
min_capacity = number
max_capacity = optional(number)
})
default = null
}
variable "private_ip_address" {
description = "Private IP Address to assign to the Load Balancer."
default = null
}
variable "backend_address_pools" {
description = "List of backend address pools"
type = list(object({
name = string
fqdns = optional(list(string))
ip_addresses = optional(list(string))
}))
}
variable "backend_http_settings" {
description = "List of backend HTTP settings."
type = list(object({
name = string
cookie_based_affinity = string
affinity_cookie_name = optional(string)
path = optional(string)
enable_https = bool
probe_name = optional(string)
request_timeout = number
host_name = optional(string)
pick_host_name_from_backend_address = optional(bool)
authentication_certificate = optional(object({
name = string
}))
trusted_root_certificate_names = optional(list(string))
connection_draining = optional(object({
enable_connection_draining = bool
drain_timeout_sec = number
}))
}))
}
variable "http_listeners" {
description = "List of HTTP/HTTPS listeners. SSL Certificate name is required"
type = list(object({
name = string
host_name = optional(string)
host_names = optional(list(string))
require_sni = optional(bool)
ssl_certificate_name = optional(string)
firewall_policy_id = optional(string)
ssl_profile_name = optional(string)
custom_error_configuration = optional(list(object({
status_code = string
custom_error_page_url = string
})))
}))
}
variable "request_routing_rules" {
description = "List of Request routing rules to be used for listeners."
type = list(object({
name = string
rule_type = string
http_listener_name = string
backend_address_pool_name = optional(string)
backend_http_settings_name = optional(string)
redirect_configuration_name = optional(string)
rewrite_rule_set_name = optional(string)
url_path_map_name = optional(string)
}))
default = []
}
variable "identity_ids" {
description = "Specifies a list with a single user managed identity id to be assigned to the Application Gateway"
default = null
}
variable "authentication_certificates" {
description = "Authentication certificates to allow the backend with Azure Application Gateway"
type = list(object({
name = string
data = string
}))
default = []
}
variable "trusted_root_certificates" {
description = "Trusted root certificates to allow the backend with Azure Application Gateway"
type = list(object({
name = string
data = string
}))
default = []
}
variable "ssl_policy" {
description = "Application Gateway SSL configuration"
type = object({
disabled_protocols = optional(list(string))
policy_type = optional(string)
policy_name = optional(string)
cipher_suites = optional(list(string))
min_protocol_version = optional(string)
})
default = null
}
variable "ssl_certificates" {
description = "List of SSL certificates data for Application gateway"
type = list(object({
name = string
data = optional(string)
password = optional(string)
key_vault_secret_id = optional(string)
}))
default = []
}
variable "health_probes" {
description = "List of Health probes used to test backend pools health."
type = list(object({
name = string
host = string
interval = number
path = string
timeout = number
unhealthy_threshold = number
port = optional(number)
pick_host_name_from_backend_http_settings = optional(bool)
minimum_servers = optional(number)
match = optional(object({
body = optional(string)
status_code = optional(list(string))
}))
}))
default = []
}
variable "url_path_maps" {
description = "List of URL path maps associated to path-based rules."
type = list(object({
name = string
default_backend_http_settings_name = optional(string)
default_backend_address_pool_name = optional(string)
default_redirect_configuration_name = optional(string)
default_rewrite_rule_set_name = optional(string)
path_rules = list(object({
name = string
backend_address_pool_name = optional(string)
backend_http_settings_name = optional(string)
paths = list(string)
redirect_configuration_name = optional(string)
rewrite_rule_set_name = optional(string)
firewall_policy_id = optional(string)
}))
}))
default = []
}
variable "redirect_configuration" {
description = "list of maps for redirect configurations"
type = list(map(string))
default = []
}
variable "custom_error_configuration" {
description = "Global level custom error configuration for application gateway"
type = list(map(string))
default = []
}
variable "rewrite_rule_set" {
description = "List of rewrite rule set including rewrite rules"
type = any
default = []
}
variable "waf_configuration" {
description = "Web Application Firewall support for your Azure Application Gateway"
type = object({
firewall_mode = string
rule_set_version = string
file_upload_limit_mb = optional(number)
request_body_check = optional(bool)
max_request_body_size_kb = optional(number)
disabled_rule_group = optional(list(object({
rule_group_name = string
rules = optional(list(string))
})))
exclusion = optional(list(object({
match_variable = string
selector_match_operator = optional(string)
selector = optional(string)
})))
})
default = null
}
variable "agw_diag_logs" {
description = "Application Gateway Monitoring Category details for Azure Diagnostic setting"
default = ["ApplicationGatewayAccessLog", "ApplicationGatewayPerformanceLog", "ApplicationGatewayFirewallLog"]
}
variable "pip_diag_logs" {
description = "Load balancer Public IP Monitoring Category details for Azure Diagnostic setting"
default = ["DDoSProtectionNotifications", "DDoSMitigationFlowLogs", "DDoSMitigationReports"]
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}