-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
153 lines (133 loc) · 3.51 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
variable "loadbalancer_name" {
description = "Name of the Load Balancer (It is already prefixed by elb-*)"
type = string
}
variable "subnet_id" {
description = "Subnet ID to attach the VIP"
type = string
}
variable "vip_address" {
description = "Address of the VIP (In the same Subnet)"
type = string
}
variable "bind_eip" {
description = "Boolean to know if we bind an EIP"
type = bool
default = true
}
variable "eip_addr" {
description = "Address of an existing EIP to attach (ex: 1.2.3.4). Left null will create a new EIP"
type = string
default = null
}
variable "cert" {
description = "Boolean to know if we add certificate"
type = bool
default = false
}
variable "cert_name" {
default = ""
}
variable "certId" {
default = ""
}
variable "private_key" {
default = ""
}
variable "certificate" {
default = ""
}
variable "domain" {
default = ""
}
variable "listeners" {
description = "Listeners list"
type = list(object({
name = string
port = number
protocol = string #Protocol used TCP, UDP, HTTP or TERMINATED_HTTPS
hasCert = bool
}))
}
variable "listeners_whitelist" {
description = "Listeners whitelist"
type = list(object({
listeners_index = number
enable_whitelist = bool
whitelist = string #Comma separated : "192.168.11.1,192.168.0.1/24,192.168.201.18/8"
}))
default = []
}
variable "pools" {
description = "Pools list"
type = list(object({
name = string
protocol = string
lb_method = string # Load Balancing method (ROUND_ROBIN recommended)
listener_index = number # Listenerused in this pool (Can be null)
}))
}
variable "backends" {
description = "List of backends"
type = list(object({
name = string
port = number
address_index = string
pool_index = number
subnet_id = string
}))
}
variable "backends_addresses" {
description = "List of backends adresses"
type = list
}
variable "monitors" {
description = "List of monitors"
type = list(object({
name = string
pool_index = number
protocol = string
delay = number
timeout = number
max_retries = number
}))
default = []
}
variable "monitorsHttp" {
description = "List of monitors HTTP/HTTPS"
type = list(object({
name = string
pool_index = number
protocol = string
delay = number
timeout = number
max_retries = number
url_path = string
http_method = string
expected_codes = string
}))
default = []
}
variable "l7policies" {
description = "List of L7 policies redirected to pools/listeners"
type = list(object({
name = string
action = string # REDIRECT_TO_POOL / REDIRECT_TO_LISTENER
description = string
position = number
listener_index = number
redirect_listener_index = number # if REDIRECT_TO_LISTENER is set, or null LISTENER must be listen on HTTPS_TERMINATED
redirect_pool_index = number # if REDIRECT_TO_POOL is set, or null - pool used to redirect must be not associated with a listener
}))
default = []
}
variable "l7policies_rules" { # Only if REDIRECT_TO_POOL
description = "List of L7 policies redirected to pools/listeners"
type = list(object({
l7policy_index = number
type = string
compare_type = string
value = string
}))
default = []
}