-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
593 lines (508 loc) · 16.2 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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
variable "site_name" {
description = "The name of the AWS VPC Site that will be configured."
type = string
default = ""
}
variable "site_description" {
description = "The description for the AWS VPC Site that will be configured."
type = string
default = null
}
variable "site_namespace" {
description = "The namespace where AWS VPC Site that will be configured."
type = string
default = "system"
}
variable "tags" {
description = "A map of tags to add to all resources."
type = map(string)
default = {}
}
variable "offline_survivability_mode" {
description = "Enable/Disable offline survivability mode."
type = bool
default = false
}
variable "software_version" {
description = "F5XC Software Version is optional parameter, which allows to specify target SW version for particular site e.g. crt-20210329-1002."
type = string
default = null
}
variable "operating_system_version" {
description = "Operating System Version is optional parameter, which allows to specify target OS version for particular site e.g. 7.2009.10."
type = string
default = null
}
variable "site_type" {
description = "The site_type variable is used to specify the type of site that will be deployed. Available values: ingress_gw, ingress_egress_gw, app_stack"
type = string
default = "ingress_gw"
}
variable "master_nodes_az_names" {
description = "Availability Zone Names for Master Nodes."
type = list(string)
default = []
}
variable "nodes_disk_size" {
description = "Disk size to be used fornodes in GiB. 80 is 80 GiB."
type = number
default = 80
}
#-----------------------------------------------------------
# SSH Key
#-----------------------------------------------------------
variable "ssh_key" {
description = "Public SSH key for accessing the AWS VPC Site. If not provided, a new key will be generated."
type = string
default = null
}
#-----------------------------------------------------------
# AWS
#-----------------------------------------------------------
variable "aws_region" {
description = "Name for AWS Region."
type = string
default = ""
}
variable "instance_type" {
description = "Select Instance size based on performance needed."
type = string
default = "t3.xlarge"
}
#-----------------------------------------------------------
# L3 Performance Mode
#-----------------------------------------------------------
variable "jumbo" {
description = "L3 performance mode enhancement to use jumbo frame."
type = bool
default = null
}
#-----------------------------------------------------------
# AWS Cloud Credentials
#-----------------------------------------------------------
variable "aws_cloud_credentials_name" {
description = "AWS Cloud Credentials Name."
type = string
default = null
}
variable "aws_cloud_credentials_namespace" {
description = "AWS Cloud Credentials Namespace."
type = string
default = "system"
}
variable "aws_cloud_credentials_tenant" {
description = "AWS Cloud Credentials Tenant."
type = string
default = null
}
#-----------------------------------------------------------
# Direct Connect
#-----------------------------------------------------------
variable "direct_connect" {
description = "Direct Connect feature configuration."
type = object({
auto_asn = optional(bool)
custom_asn = optional(number)
standard_vifs = optional(bool)
})
default = null
}
#-----------------------------------------------------------
# Egress
#-----------------------------------------------------------
variable "egress_nat_gw" {
description = "Egress site traffic will be routed through an Network Address Translation(NAT) Gateway."
type = object({
nat_gw_id = optional(string)
})
default = null
}
variable "egress_virtual_private_gateway" {
description = "Egress site traffic will be routed through an Virtual Private Gateway."
type = object({
vgw_id = optional(string)
})
default = null
}
#-----------------------------------------------------------
# VIP
#-----------------------------------------------------------
variable "enable_internet_vip" {
description = "VIPs can be advertised to the internet directly on this Site."
type = bool
default = false
}
variable "allowed_vip_port" {
description = "Allowed VIP Port Configuration for Outside Network."
type = object({
disable_allowed_vip_port = optional(bool)
use_http_https_port = optional(bool)
use_http_port = optional(bool)
use_https_port = optional(bool)
custom_port_ranges = optional(string)
})
default = {
disable_allowed_vip_port = true
}
}
variable "allowed_vip_port_sli" {
description = "Allowed VIP Port Configuration for Inside Network."
type = object({
disable_allowed_vip_port = optional(bool)
use_http_https_port = optional(bool)
use_http_port = optional(bool)
use_https_port = optional(bool)
custom_port_ranges = optional(string)
})
default = {
disable_allowed_vip_port = true
}
}
#-----------------------------------------------------------
# Logs Streaming
#-----------------------------------------------------------
variable "log_receiver" {
description = "Select log receiver for logs streaming."
type = object({
name = string
namespace = optional(string)
tenant = optional(string)
})
default = null
}
#-----------------------------------------------------------
# VPC
#-----------------------------------------------------------
variable "vpc_id" {
description = "The ID of the existing AWS VPC where the resources will be provisioned."
type = string
default = null
}
variable "vpc_name" {
description = "The name of the autogenerated VPC where the resources will be provisioned."
type = string
default = null
}
variable "vpc_allocate_ipv6" {
description = "Allocate IPv6 CIDR block from AWS."
type = bool
default = null
}
variable "vpc_cidr" {
description = "The Primary IPv4 block cannot be modified. All subnets prefixes in this VPC must be part of this CIDR block."
type = string
default = null
}
variable "create_aws_vpc" {
description = "Create AWS VPC."
type = string
default = true
}
#-----------------------------------------------------------
# Security Group
#-----------------------------------------------------------
variable "custom_security_group" {
description = "With this option, ingress and egress traffic will be controlled via security group ids."
type = object({
inside_security_group_id = optional(string)
outside_security_group_id = optional(string)
})
default = null
}
#-----------------------------------------------------------
# Subnets
#-----------------------------------------------------------
variable "existing_local_subnets" {
description = "If you want to use existing subnets, provide the subnet IDs here."
type = list(string)
default = []
}
variable "existing_inside_subnets" {
description = "If you want to use existing subnets, provide the subnet IDs here."
type = list(string)
default = []
}
variable "existing_outside_subnets" {
description = "If you want to use existing subnets, provide the subnet IDs here."
type = list(string)
default = []
}
variable "existing_workload_subnets" {
description = "If you want to use existing subnets, provide the subnet IDs here."
type = list(string)
default = []
}
variable "local_subnets" {
description = "Local Subnets for the Site."
type = list(string)
default = []
}
variable "inside_subnets" {
description = "Inside Subnets for the Site."
type = list(string)
default = []
}
variable "outside_subnets" {
description = "Outside Subnets for the Site."
type = list(string)
default = []
}
variable "workload_subnets" {
description = "Workload Subnets for the Site."
type = list(string)
default = []
}
variable "local_subnets_ipv6" {
description = "Local Subnets for the Site."
type = list(string)
default = []
}
variable "inside_subnets_ipv6" {
description = "Inside Subnets for the Site."
type = list(string)
default = []
}
variable "outside_subnets_ipv6" {
description = "Outside Subnets for the Site."
type = list(string)
default = []
}
variable "workload_subnets_ipv6" {
description = "Workload Subnets for the Site."
type = list(string)
default = []
}
#-----------------------------------------------------------
# Worker Nodes
#-----------------------------------------------------------
variable "worker_nodes_per_az" {
description = "Desired Worker Nodes Per AZ. Max limit is up to 21."
type = number
default = 0
}
#-----------------------------------------------------------
# Blocked Services
#-----------------------------------------------------------
variable "block_all_services" {
description = "Block DNS, SSH & WebUI services on Site."
type = bool
default = true
}
variable "blocked_service" {
description = "Use custom blocked services configuration."
type = object({
dns = optional(bool)
ssh = optional(bool)
web_user_interface = optional(bool)
network_type = optional(string)
})
default = null
}
#-----------------------------------------------------------
# Apply Action
#-----------------------------------------------------------
variable "apply_action_wait_for_action" {
description = "Wait for terraform action job to complete."
type = bool
default = true
}
variable "apply_action_ignore_on_update" {
description = "Ignore action to perform during update."
type = bool
default = true
}
#-----------------------------------------------------------
# DC Cluster Group
#-----------------------------------------------------------
variable "dc_cluster_group_inside_vn" {
description = "This site is member of dc cluster group connected via inside network."
type = object({
name = string
namespace = optional(string)
tenant = optional(string)
})
default = null
}
variable "dc_cluster_group_outside_vn" {
description = "This site is member of dc cluster group connected via outside network."
type = object({
name = string
namespace = optional(string)
tenant = optional(string)
})
default = null
}
#-----------------------------------------------------------
# Forward Proxy
#-----------------------------------------------------------
variable "active_forward_proxy_policies_list" {
description = "List of Forward Proxy Policies."
type = list(object({
name = string
namespace = optional(string)
tenant = optional(string)
}))
default = []
}
variable "forward_proxy_allow_all" {
description = "Enable Forward Proxy for this site and allow all requests."
type = bool
default = null
}
#-----------------------------------------------------------
# Global Network
#-----------------------------------------------------------
variable "global_network_connections_list" {
description = "Global network connections."
type = list(object({
sli_to_global_dr = optional(object({
global_vn = object({
name = string
namespace = optional(string)
tenant = optional(string)
})
}))
slo_to_global_dr = optional(object({
global_vn = object({
name = string
namespace = optional(string)
tenant = optional(string)
})
}))
}))
default = []
}
#-----------------------------------------------------------
# Static Routes
#-----------------------------------------------------------
variable "inside_static_route_list" {
description = "List of Inside Static routes."
type = list(object({
custom_static_route = optional(object({
attrs = optional(list(string))
labels = optional(string)
nexthop = optional(object({
interface = optional(object({
name = string
namespace = optional(string)
tenant = optional(string)
}))
nexthop_address = optional(object({
ipv4 = optional(object({
addr = optional(string)
}))
ipv6 = optional(object({
addr = optional(string)
}))
}))
type = optional(string)
}))
subnets = object({
ipv4 = optional(object({
plen = optional(number)
prefix = optional(string)
}))
ipv6 = optional(object({
plen = optional(number)
prefix = optional(string)
}))
})
}))
simple_static_route = optional(string)
}))
default = []
}
variable "outside_static_route_list" {
description = "List of Outside Static routes."
type = list(object({
custom_static_route = optional(object({
attrs = optional(list(string))
labels = optional(string)
nexthop = optional(object({
interface = optional(object({
name = string
namespace = optional(string)
tenant = optional(string)
}))
nexthop_address = optional(object({
ipv4 = optional(object({
addr = optional(string)
}))
ipv6 = optional(object({
addr = optional(string)
}))
}))
type = optional(string)
}))
subnets = object({
ipv4 = optional(object({
plen = optional(number)
prefix = optional(string)
}))
ipv6 = optional(object({
plen = optional(number)
prefix = optional(string)
}))
})
}))
simple_static_route = optional(string)
}))
default = []
}
#-----------------------------------------------------------
# Network Policies
#-----------------------------------------------------------
variable "enhanced_firewall_policies_list" {
description = "Ordered List of Enhaned Firewall Policy active for this network firewall."
type = list(object({
name = string
namespace = optional(string)
tenant = optional(string)
}))
default = []
}
variable "active_network_policies_list" {
description = "Ordered List of Firewall Policies active for this network firewall."
type = list(object({
name = string
namespace = optional(string)
tenant = optional(string)
}))
default = []
}
#-----------------------------------------------------------
# IP SEC
#-----------------------------------------------------------
variable "sm_connection_public_ip" {
description = "Creating ipsec between two sites which are part of the site mesh group."
type = bool
default = true
}
# TODO: AWS TGW Settings
# default_storage
# storage_class_list
# direct_connect_enabled
# direct_connect_disabled
#-----------------------------------------------------------
# AWS VPC
#-----------------------------------------------------------
variable "vpc_instance_tenancy" {
description = "A tenancy option for instances launched into the VPC"
type = string
default = "default"
}
variable "vpc_enable_dns_hostnames" {
description = "Should be true to enable DNS hostnames in the VPC"
type = bool
default = true
}
variable "vpc_enable_dns_support" {
description = "Should be true to enable DNS support in the VPC"
type = bool
default = true
}
variable "vpc_enable_network_address_usage_metrics" {
description = "Determines whether network address usage metrics are enabled for the VPC"
type = bool
default = null
}