-
Notifications
You must be signed in to change notification settings - Fork 6
/
variables.tf
284 lines (236 loc) · 7.57 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
variable "cloudfront_migrated" {
description = "Whether the service has been migrated to CloudFront"
type = string
default = "false"
}
# required
variable "fastly_domain" {
description = ""
type = string
}
variable "additional_fastly_domains" {
default = []
type = list(string)
}
variable "domain_no_prefix" {
type = list(string)
description = "List of domains without env prefix used for supporting legacy domain urls"
default = []
}
variable "env" {
description = "Environment name"
}
variable "team" {
description = "Team that owns the service"
}
variable "component" {
description = "Component name"
}
variable "platform_config" {
description = "Platform configuration"
type = map
default = {}
}
variable "alb_domain" {
description = ""
type = string
}
# optional
variable "bare_redirect_domain_name" {
type = string
default = ""
description = "If set then an additional service will be created to redirect the zone apex (bare domain) to the domain - i.e. add the www."
}
variable "backend_ip" {
description = "Backend to route all requests by default to; default: 404 (see README)"
type = string
default = "404"
}
variable "backend_port" {
description = "Backend port to use; default: 80"
type = string
default = "80"
}
variable "ssl_cert_check" {
description = "Check the backend cert is valid"
type = string
default = "true"
}
variable "ssl_cert_hostname" {
description = "The hostname to validate the certificate presented by the backend against"
type = string
default = ""
}
variable "force_ssl" {
type = string
description = "Whether or not to force SSL (redirect requests to HTTP to HTTPS)"
default = "true"
}
variable "fastly_caching" {
description = "Whether to enable / forcefully disable caching on Fastly (default: true)"
type = string
default = "true"
}
variable "connect_timeout" {
type = string
description = ""
default = 5000
}
variable "first_byte_timeout" {
type = string
description = ""
default = 60000
}
variable "between_bytes_timeout" {
type = string
description = ""
default = 30000
}
variable "default_target_group_deregistration_delay" {
description = "The amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. The range is 0-3600 seconds."
type = string
default = "10"
}
variable "default_target_group_health_check_interval" {
description = "The approximate amount of time, in seconds, between health checks of an individual target. Minimum value 5 seconds, Maximum value 300 seconds."
type = string
default = "5"
}
variable "default_target_group_health_check_path" {
description = "The destination for the health check request."
type = string
default = "/internal/healthcheck"
}
variable "default_target_group_health_check_timeout" {
description = "The amount of time, in seconds, during which no response means a failed health check."
type = string
default = "4"
}
variable "default_target_group_health_check_healthy_threshold" {
description = "The number of consecutive health checks successes required before considering an unhealthy target healthy."
type = string
default = "2"
}
variable "default_target_group_health_check_unhealthy_threshold" {
description = "The number of consecutive health check failures required before considering the target unhealthy."
type = string
default = "2"
}
variable "default_target_group_health_check_matcher" {
description = "The HTTP codes to use when checking for a successful response from a target. You can specify multiple values (for example, \"200,202\") or a range of values (for example, \"200-299\")."
type = string
default = "200-299"
}
variable "default_target_group_component" {
description = "The name of the component that the default target group routes to - use this to ensure ALB logs are tagged correctly (the default will be to base it on the router name)"
type = string
default = ""
}
variable "custom_vcl_backends" {
type = string
description = "Custom VCL to add at the top level (e.g. for defining backends)"
default = ""
}
variable "custom_vcl_recv" {
type = string
description = "Custom VCL to add to the vcl_recv sub after the Fastly hook - this will run regardless of whether running on a shield node"
default = ""
}
variable "custom_vcl_recv_shield_only" {
type = string
description = "Custom VCL to add to the vcl_recv sub after the Fastly hook, only on shield nodes"
default = ""
}
variable "custom_vcl_recv_no_shield" {
type = string
description = "Custom VCL to add to the vcl_recv sub after the Fastly hook, but not on shield nodes"
default = ""
}
variable "default_target_group_target_type" {
description = "The type of target that you must specify when registering targets with the default target group. The possible values are instance (targets are specified by instance ID) or ip (targets are specified by IP address). The default is instance."
type = string
default = "instance"
}
variable "custom_vcl_error" {
type = string
description = "Custom VCL to add to the vcl_error sub after the Fastly hook"
default = ""
}
variable "custom_vcl_deliver" {
type = string
description = "Custom VCL to add to the vcl_deliver sub after the Fastly hook"
default = ""
}
variable "bypass_busy_wait" {
type = string
description = "Disable collapsed forwarding, so you don't wait for other objects to origin."
default = "false"
}
variable "proxy_error_response" {
type = string
description = "The html error document to send for a proxy error - 502/503 from backend, or no response from backend at all."
default = <<EOF
<!DOCTYPE html>
<html>
<head>
<title>Service Unavailable</title>
</head>
<body>
<h1>Service Unavailable</h1>
<p>
The site you requested is currently unavailable.
</p>
</body>
</html>
EOF
}
variable "not_found_response" {
type = string
description = "The html error document to send for a not found error"
default = ""
}
variable "error_response" {
type = string
description = "The html error document to send for a server error"
default = ""
}
variable "ecs_cluster" {
type = string
description = "The ecs cluster where the services will run (for the security group)."
default = "default"
}
variable "shield" {
type = string
description = "PoP to use as an origin shield (e.g. london-uk for Slough)."
default = ""
}
variable "surrogate_key_name" {
type = string
description = "Fastly surrogate key name"
default = "default-surrogate-key"
}
variable "idle_timeout" {
description = "The time in seconds that the connection is allowed to be idle."
type = string
default = "60"
}
variable "dev_subdomain" {
description = "Adds dev prefix on subdomains for certificate zoneid ex: *.dev.mmgdev.acuisbackend.com"
default = false
}
variable "alias" {
description = "Creates a CNAME dns record type"
default = true
}
variable "run_data" {
description = "Used to switch off data resources when unit testing"
default = true
}
variable "sticky" {
description = "turn on sticky"
default = []
}
variable "override_host" {
description = "Used to enable or disable setting of default_host (Override host in UI) value"
default = "true"
}