forked from vktr-brlv/terraform-google-lb-http
-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
188 lines (164 loc) · 5.42 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
/**
* Copyright 2017 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
variable "project" {
description = "The project to deploy to, if not set the default provider project is used."
type = string
}
variable "create_address" {
type = bool
description = "Create a new global address"
default = true
}
variable "address" {
type = string
description = "IP address self link"
default = null
}
variable "ip_version" {
description = "IP version for the Global address (IPv4 or v6) - Empty defaults to IPV4"
type = string
default = null
}
variable "firewall_networks" {
description = "Names of the networks to create firewall rules in"
type = list(string)
default = ["default"]
}
variable "firewall_projects" {
description = "Names of the projects to create firewall rules in"
type = list(string)
default = ["default"]
}
variable "name" {
description = "Name for the forwarding rule and prefix for supporting resources"
type = string
}
variable "target_tags" {
description = "List of target tags for health check firewall rule. Exactly one of target_tags or target_service_accounts should be specified."
type = list(string)
default = []
}
variable "target_service_accounts" {
description = "List of target service accounts for health check firewall rule. Exactly one of target_tags or target_service_accounts should be specified."
type = list(string)
default = []
}
variable "backends" {
description = "Map backend indices to list of backend maps."
type = map(object({
description = string
protocol = string
port = number
port_name = string
timeout_sec = number
connection_draining_timeout_sec = number
enable_cdn = bool
session_affinity = string
affinity_cookie_ttl_sec = number
health_check = object({
check_interval_sec = number
timeout_sec = number
healthy_threshold = number
unhealthy_threshold = number
request_path = string
port = number
host = string
logging = bool
})
log_config = object({
enable = bool
sample_rate = number
})
groups = list(object({
group = string
balancing_mode = string
capacity_scaler = number
description = string
max_connections = number
max_connections_per_instance = number
max_connections_per_endpoint = number
max_rate = number
max_rate_per_instance = number
max_rate_per_endpoint = number
max_utilization = number
}))
}))
}
variable "create_url_map" {
description = "Set to `false` if url_map variable is provided."
type = bool
default = true
}
variable "url_map" {
description = "The url_map resource to use. Default is to send all traffic to first backend."
type = string
default = null
}
variable "http_forward" {
description = "Set to `false` to disable HTTP port 80 forward"
type = bool
default = true
}
variable "ssl" {
description = "Set to `true` to enable SSL support, requires variable `ssl_certificates` - a list of self_link certs"
type = bool
default = false
}
variable "ssl_policy" {
type = string
description = "Selfink to SSL Policy"
default = null
}
variable "quic" {
type = bool
description = "Set to `true` to enable QUIC support"
default = false
}
variable "private_key" {
description = "Content of the private SSL key. Required if `ssl` is `true` and `ssl_certificates` is empty."
type = string
default = null
}
variable "certificate" {
description = "Content of the SSL certificate. Required if `ssl` is `true` and `ssl_certificates` is empty."
type = string
default = null
}
variable "use_ssl_certificates" {
description = "If true, use the certificates provided by `ssl_certificates`, otherwise, create cert from `private_key` and `certificate`"
type = bool
default = false
}
variable "ssl_certificates" {
description = "SSL cert self_link list. Required if `ssl` is `true` and no `private_key` and `certificate` is provided."
type = list(string)
default = []
}
variable "security_policy" {
description = "The resource URL for the security policy to associate with the backend service"
type = string
default = null
}
variable "cdn" {
description = "Set to `true` to enable cdn on backend."
type = bool
default = false
}
variable "https_redirect" {
description = "Set to `true` to enable https redirect on the lb."
type = bool
default = false
}