-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
895 lines (763 loc) · 26.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
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
variable "availability_zones" {
type = list(string)
description = "Required only if not specifying subnet_ids, this zone(s) will be used to create subnet that will be used by weka. Currently limited to single subnet"
default = []
validation {
condition = length(var.availability_zones) <= 1
error_message = "Multiple AZs are not supported. Please provide only one AZ."
}
}
variable "subnet_ids" {
type = list(string)
description = "List of subnet ids"
default = []
validation {
condition = length(var.subnet_ids) <= 1
error_message = "Multiple subnets are not supported. Please provide only one subnet."
}
}
variable "nat_public_subnet_cidr" {
type = string
description = "CIDR block for public subnet"
default = "10.0.2.0/24"
}
variable "create_nat_gateway" {
type = bool
default = false
description = "NAT needs to be created when no public ip is assigned to the backend, to allow internet access"
}
variable "subnets_cidrs" {
type = list(string)
description = "CIDR block for subnet creation, required only if not specifying subnet_ids, this block will be used to create subnet that will be used by weka. Currently limited to single"
default = ["10.0.1.0/24"]
validation {
condition = length(var.subnets_cidrs) <= 1
error_message = "Multiple subnets are not supported. Please provide only one subnet cidr."
}
}
variable "prefix" {
type = string
description = "Prefix for all resources"
default = "weka"
}
variable "custom_prefix" {
type = map(string)
description = "Custom prefix for resources. The supported keys are: lb, db, kms, cloudwatch, sfn, lambda, secrets, ec2, iam, obs"
default = {}
validation {
condition = alltrue([for k, v in var.custom_prefix : contains(["lb", "db", "kms", "cloudwatch", "sfn", "lambda", "secrets", "ec2", "iam", "obs"], k)])
error_message = "Custom prefix keys should be of the following: [\"lb\", \"db\", \"kms\", \"cloudwatch\", \"sfn\", \"lambda\", \"secrets\", \"ec2\", \"iam\", \"obs\"]."
}
}
variable "subnet_autocreate_as_private" {
type = bool
default = false
description = "Create private subnet using nat gateway to route traffic. The default is public network. Relevant only when subnet_ids is empty."
}
variable "assign_public_ip" {
type = string
default = "auto"
description = "Determines whether to assign public IP to all instances deployed by TF module. Includes backends, clients and protocol gateways"
validation {
condition = var.assign_public_ip == "true" || var.assign_public_ip == "false" || var.assign_public_ip == "auto"
error_message = "Allowed assign_public_ip values: [\"true\", \"false\", \"auto\"]."
}
}
variable "instance_type" {
type = string
description = "The virtual machine type (sku) to deploy."
default = "i3en.2xlarge"
}
variable "ami_id" {
type = string
description = "AMI ID to use, Amazon Linux 2 is the supported OS."
default = null
}
variable "sg_ids" {
type = list(string)
default = []
description = "Security group ids"
}
variable "containers_config_map" {
type = map(object({
compute = number
drive = number
frontend = number
nvme = number
nics = number
memory = list(string)
}))
description = "Maps the number of objects and memory size per machine type."
default = {
"i3en.2xlarge" = {
compute = 1
drive = 1
frontend = 1
nvme = 2
nics = 4
memory = ["32.9GB", "32.64GB"]
},
"i3en.3xlarge" = {
compute = 1
drive = 1
frontend = 1
nvme = 1
nics = 4
memory = ["62GB", "61.7GB"]
},
"i3en.6xlarge" = {
compute = 4
drive = 2
frontend = 1
nvme = 2
nics = 8
memory = ["136.5GB", "136.2GB"]
},
"i3en.12xlarge" = {
compute = 4
drive = 2
frontend = 1
nvme = 4
nics = 8
memory = ["310.7GB", "310.4GB"]
},
"i3en.24xlarge" = {
compute = 9
drive = 4
frontend = 1
nvme = 8
nics = 15
memory = ["384GB", "384GB"]
}
}
validation {
condition = alltrue([for m in flatten([for i in values(var.containers_config_map) : (flatten(i.memory))]) : tonumber(trimsuffix(m, "GB")) <= 384])
error_message = "Compute memory can not be more then 384GB"
}
}
variable "cluster_size" {
type = number
description = "The number of virtual machines to deploy."
default = 6
validation {
condition = var.cluster_size >= 6
error_message = "Cluster size should be at least 6."
}
}
variable "cluster_name" {
type = string
description = "The cluster name."
default = "poc"
}
variable "weka_version" {
type = string
description = "The Weka version to deploy."
default = ""
}
variable "get_weka_io_token" {
type = string
description = "The token to download the Weka release from get.weka.io."
sensitive = true
}
variable "get_weka_io_token_secret_id" {
type = string
description = "The secrets manager secret id of the token to download the Weka release from get.weka.io. i.e. arn:aws:secretsmanager:<REGION>:<ACCOUNT_NUMBER>:secret:<SECRET_NAME>"
default = ""
}
variable "ssh_public_key" {
type = string
description = "Ssh public key to pass to the instances."
default = null
}
variable "key_pair_name" {
type = string
description = "Ssh key pair name to pass to the instances."
default = null
}
variable "enable_key_pair" {
type = bool
default = true
description = "create / use key pair for instance template"
}
variable "placement_group_name" {
type = string
default = null
validation {
condition = var.placement_group_name != ""
error_message = "Placement group name may not be and empty string"
}
}
variable "use_placement_group" {
type = bool
default = true
description = "Use cluster placement group for backends. Note: If not using a cluster placement group, the instances will most likely be spread out across the underlying AWS infrastructure, resulting in not getting the maximum performance from the WEKA cluster"
}
variable "install_weka_url" {
type = string
default = ""
description = "The URL of the Weka release. Supports path to weka tar file or installation script."
}
variable "tags_map" {
type = map(string)
default = {}
description = "A map of tags to assign the same metadata to all resources in the environment. Format: key:value. Note: Manually tagged resources will be overridden by Terraform apply."
}
variable "set_dedicated_fe_container" {
type = bool
default = false
description = "Create cluster with FE containers"
}
variable "protection_level" {
type = number
default = 2
description = "Cluster data protection level."
validation {
condition = var.protection_level == 2 || var.protection_level == 4
error_message = "Allowed protection_level values: [2, 4]."
}
}
variable "stripe_width" {
type = number
default = -1
description = "Stripe width = cluster_size - protection_level - 1 (by default)."
validation {
condition = var.stripe_width == -1 || var.stripe_width >= 3 && var.stripe_width <= 16
error_message = "The stripe_width value can take values from 3 to 16."
}
}
variable "hotspare" {
type = number
default = 1
description = "Number of hotspares to set on weka cluster. Refer to https://docs.weka.io/overview/ssd-capacity-management#hot-spare"
}
variable "instance_iam_profile_arn" {
type = string
description = "ARN of IAM Instance Profile that will be used by weka backend instances, if not specified will be created automatically. If pre-created should match policy described in readme"
default = ""
}
variable "lambda_iam_role_arn" {
type = string
description = "IAM Role that will be used by AWS Lambdas, if not specified will be created automatically. If pre-created should match policy described in readme"
default = ""
}
variable "additional_instance_iam_policy_statement" {
type = list(object({
Effect = string
Action = list(string)
Resource = list(string)
}))
default = null
description = "Additional IAM policy statement to be added to the instance IAM role."
}
variable "vpc_id" {
type = string
description = "VPC ID, required only for security group creation"
default = ""
}
variable "vpc_cidr" {
type = string
description = "CIDR block of the vpc"
default = "10.0.0.0/16"
}
variable "allow_ssh_cidrs" {
type = list(string)
description = "Allow port 22, if not provided, i.e leaving the default empty list, the rule will not be included in the SG"
default = []
}
variable "alb_allow_https_cidrs" {
type = list(string)
description = "CIDRs to allow connecting to ALB over 443 port, by default 443 is not opened, and port 14000 used for connection, inheriting setting from allow_weka_api_ranges "
default = []
}
variable "allow_weka_api_cidrs" {
type = list(string)
description = "Allow connection to port 14000 on weka backends and ALB(if exists and not provided with dedicated SG) from specified CIDRs, by default no CIDRs are allowed. All ports (including 14000) are allowed within VPC"
default = []
}
variable "sg_custom_ingress_rules" {
type = list(object({
from_port = number
to_port = number
protocol = string
cidr_blocks = list(string)
}))
default = []
description = "Custom inbound rules to be added to the security group."
}
variable "proxy_url" {
type = string
description = "Weka proxy url"
default = ""
}
variable "dynamodb_table_name" {
type = string
description = "DynamoDB table name, if not supplied a new table will be created"
default = ""
}
variable "dynamodb_hash_key_name" {
type = string
description = "DynamoDB hash key name (optional configuration, will use 'Key' by default). This key will be used if dynamodb table will be created automatically, by not setting `dynamodb_table_name` param. In case `dynamodb_table_name` parameter is set, `dynamodb_hash_key_name` should match the key that should be used by us within pre-created table "
default = "Key"
}
variable "lambdas_version" {
type = string
description = "Lambdas code version (hash)"
default = "c7ddb52dd06ee0701d8f56d3b354481f"
}
variable "lambdas_dist" {
type = string
description = "Lambdas code dist"
default = "release"
validation {
condition = contains(["dev", "release"], var.lambdas_dist)
error_message = "Valid value is one of the following: dev, release."
}
}
variable "sfn_iam_role_arn" {
type = string
default = ""
description = "Step function iam role arn"
}
variable "event_iam_role_arn" {
type = string
default = ""
description = "IAM Role that will be used by cloudwatch rule(event), if not specified will be created automatically. If pre-created should match policy described in readme"
}
variable "secretmanager_use_vpc_endpoint" {
type = bool
default = true
description = "Use of secret manager is optional, if not used secrets will be passed between lambdas over step function. If secret manager is used, all lambdas will fetch secret directly when needed."
}
variable "secretmanager_create_vpc_endpoint" {
type = bool
default = true
description = "Enable secret manager VPC endpoint"
}
variable "secretmanager_sg_ids" {
type = list(string)
default = []
description = "Secret manager endpoint security groups ids"
}
variable "backends_weka_volume_size" {
type = number
default = 48
description = "The backends' default disk size."
}
variable "backends_root_volume_size" {
type = number
default = null
description = "The backends' root disk size."
}
########################## alb #####################################
variable "create_alb" {
type = bool
default = true
description = "Create ALB for backend UI, and joining weka clients will use this ALB to join a cluster, allowing for better distribution of load amongst backends"
}
variable "alb_additional_subnet_id" {
type = string
default = ""
description = "Required to specify if subnet_ids were used to specify pre-defined subnets for weka. ALB requires an additional subnet, and in the case of pre-defined networking this one also should be pre-defined"
}
variable "alb_additional_subnet_cidr_block" {
type = string
description = "Additional CIDR block for public subnet"
default = "10.0.3.0/24"
}
variable "alb_additional_subnet_zone" {
type = string
description = "Zone for the ALB additional subnet"
default = ""
}
variable "alb_cert_arn" {
type = string
default = null
description = "HTTPS certificate ARN for ALB"
}
variable "alb_alias_name" {
type = string
default = ""
description = "Set ALB alias name"
}
variable "alb_sg_ids" {
type = list(string)
default = []
description = "Security group ids for ALB"
}
variable "alb_route53_zone_id" {
type = string
default = ""
description = "Route53 zone id"
}
################################################## obs variables ###################################################
variable "tiering_obs_name" {
type = string
default = ""
description = "Name of an existing S3 bucket"
}
variable "tiering_enable_obs_integration" {
type = bool
default = false
description = "Determines whether to enable object stores integration with the Weka cluster. Set true to enable the integration."
}
variable "tiering_enable_ssd_percent" {
type = number
default = 20
description = "When set_obs_integration is true, this variable sets the capacity percentage of the filesystem that resides on SSD. For example, for an SSD with a total capacity of 20GB, and the tiering_ssd_percent is set to 20, the total available capacity is 100GB."
}
variable "tiering_obs_target_ssd_retention" {
type = number
description = "Target retention period (in seconds) before tiering to OBS (how long data will stay in SSD). Default is 86400 seconds (24 hours)."
default = 86400
}
variable "tiering_obs_start_demote" {
type = number
description = "Target tiering cue (in seconds) before starting upload data to OBS (turning it into read cache). Default is 10 seconds."
default = 10
}
################################################## clients variables ###################################################
variable "clients_number" {
type = number
description = "The number of client instances to deploy"
default = 0
}
variable "client_instance_type" {
type = string
description = "The client instance type (sku) to deploy"
default = "c5.2xlarge"
}
variable "client_instance_iam_profile_arn" {
type = string
description = "ARN of IAM Instance Profile to use by client instance. If not specified Instance Profile will be automatically created"
default = ""
}
variable "client_instance_ami_id" {
type = string
description = "The default AMI ID is set to Amazon Linux 2. For the list of all supported Weka Client OSs please refer to: https://docs.weka.io/planning-and-installation/prerequisites-and-compatibility#operating-system"
default = null
}
variable "client_frontend_cores" {
type = number
description = "Number of frontend cores to use on client instances, this number will reflect on number of NICs attached to instance, as each weka core requires dedicated NIC"
default = 1
}
variable "clients_use_dpdk" {
type = bool
default = true
description = "Mount weka clients in DPDK mode"
}
variable "client_placement_group_name" {
type = string
description = "The client instances placement group name. Backend placement group can be reused. If not specified placement group will be created automatically"
default = null
validation {
condition = var.client_placement_group_name != ""
error_message = "Placement group name may not be and empty string"
}
}
variable "client_use_backends_placement_group" {
type = bool
default = true
description = "Use backends placement group for clients"
}
variable "clients_root_volume_size" {
type = number
description = "The client's root volume size in GB"
default = 48
}
variable "clients_use_autoscaling_group" {
type = bool
default = false
description = "Use autoscaling group for clients"
}
variable "clients_custom_data" {
type = string
description = "Custom data to pass to the client instances"
default = ""
}
variable "client_arch" {
type = string
default = null
description = "Use arch for ami id, value can be arm64/x86_64."
validation {
condition = var.client_arch == "arm64" || var.client_arch == "x86_64" || var.client_arch == null
error_message = "Allowed client_arch values: [\"arm64\", \"x86_64\", null]."
}
}
variable "client_capacity_reservation_id" {
type = string
default = null
description = "The ID of the capacity reservation in which to run the clients"
}
############################################### NFS protocol gateways variables ###################################################
variable "nfs_protocol_gateway_instance_iam_profile_arn" {
type = string
description = "The protocol gateway instance IAM profile ARN"
default = ""
}
variable "nfs_protocol_gateways_number" {
type = number
description = "The number of protocol gateway virtual machines to deploy."
default = 0
}
variable "nfs_protocol_gateway_secondary_ips_per_nic" {
type = number
description = "Number of secondary IPs per single NIC per protocol gateway virtual machine."
default = 3
}
variable "nfs_protocol_gateway_instance_type" {
type = string
description = "The protocol gateways' virtual machine type (sku) to deploy."
default = "c5n.2xlarge"
}
variable "nfs_protocol_gateway_fe_cores_num" {
type = number
description = "The protocol gateways' NICs number."
default = 1
}
variable "nfs_protocol_gateway_weka_volume_size" {
type = number
default = 48
description = "The protocol gateways' default disk size."
}
variable "nfs_protocol_gateway_root_volume_size" {
type = number
default = null
description = "The protocol gateways' root volume size."
}
variable "nfs_setup_protocol" {
type = bool
description = "Setup protocol, default if false"
default = false
}
variable "nfs_interface_group_name" {
type = string
description = "Interface group name."
default = "weka-ig"
validation {
condition = length(var.nfs_interface_group_name) <= 11
error_message = "The interface group name should be up to 11 characters long."
}
}
variable "nfs_capacity_reservation_id" {
type = string
default = null
description = "The ID of the capacity reservation in which to run the nfs clients"
}
variable "nfs_protocol_gateway_instance_ami_id" {
type = string
description = "AMI ID to use, Amazon Linux 2 is the supported OS."
default = null
}
############################################### SMB protocol gateways variables ###################################################
variable "smb_protocol_gateway_instance_iam_profile_arn" {
type = string
description = "The protocol gateway instance IAM profile ARN"
default = ""
}
variable "smb_protocol_gateways_number" {
type = number
description = "The number of protocol gateway virtual machines to deploy."
default = 0
}
variable "smb_protocol_gateway_secondary_ips_per_nic" {
type = number
description = "Number of secondary IPs per single NIC per protocol gateway virtual machine."
default = 0
}
variable "smb_protocol_gateway_instance_type" {
type = string
description = "The protocol gateways' virtual machine type (sku) to deploy."
default = "c5n.2xlarge"
}
variable "smb_protocol_gateway_fe_cores_num" {
type = number
description = "The protocol gateways' NICs number."
default = 1
}
variable "smb_protocol_gateway_weka_volume_size" {
type = number
default = 48
description = "The protocol gateways' default disk size."
}
variable "smb_protocol_gateway_root_volume_size" {
type = number
default = null
description = "The protocol gateways' root volume size."
}
variable "smb_setup_protocol" {
type = bool
description = "Config protocol, default if false"
default = false
}
variable "smbw_enabled" {
type = bool
default = true
description = "Enable SMBW protocol. This option should be provided before cluster is created to leave extra capacity for SMBW setup."
}
variable "smb_cluster_name" {
type = string
description = "The name of the SMB setup."
default = "Weka-SMB"
validation {
condition = length(var.smb_cluster_name) > 0 && length(var.smb_cluster_name) <= 15
error_message = "The SMB cluster name must be between 1 and 15 characters long."
}
}
variable "smb_domain_name" {
type = string
description = "The domain to join the SMB cluster to."
default = ""
}
variable "smb_capacity_reservation_id" {
type = string
default = null
description = "The ID of the capacity reservation in which to run the smb clients"
}
variable "smb_protocol_gateway_instance_ami_id" {
type = string
description = "AMI ID to use, Amazon Linux 2 is the supported OS."
default = null
}
############################################### S3 protocol gateways variables ###################################################
variable "s3_protocol_gateway_fe_cores_num" {
type = number
description = "S3 protocol gateways' NICs number."
default = 1
}
variable "s3_protocol_gateway_instance_iam_profile_arn" {
type = string
description = "The protocol gateway instance IAM profile ARN"
default = ""
}
variable "s3_protocol_gateways_number" {
type = number
description = "The number of protocol gateway virtual machines to deploy."
default = 0
}
variable "s3_protocol_gateway_instance_type" {
type = string
description = "The protocol gateways' virtual machine type (sku) to deploy."
default = "c5n.2xlarge"
}
variable "s3_protocol_gateway_weka_volume_size" {
type = number
default = 48
description = "The protocol gateways' default disk size."
}
variable "s3_protocol_gateway_root_volume_size" {
type = number
default = null
description = "The protocol gateways' root volume size."
}
variable "s3_setup_protocol" {
type = bool
description = "Config protocol, default if false"
default = false
}
variable "s3_capacity_reservation_id" {
type = string
default = null
description = "The ID of the capacity reservation in which to run the s3 clients"
}
variable "s3_protocol_gateway_instance_ami_id" {
type = string
description = "AMI ID to use, Amazon Linux 2 is the supported OS."
default = null
}
variable "weka_home_url" {
type = string
description = "Weka Home url"
default = ""
}
############################### vpc endpoint services ############################
variable "vpc_endpoint_ec2_create" {
type = bool
default = false
description = "Create Ec2 VPC endpoint"
}
variable "vpc_endpoint_s3_gateway_create" {
type = bool
default = false
description = "Create S3 gateway VPC endpoint"
}
variable "vpc_endpoint_proxy_create" {
type = bool
default = false
description = "creates VPC endpoint to weka-provided VPC Endpoint services that enable managed proxy to reach home.weka.io, get.weka.io, and AWS EC2/cloudwatch services”. Alternatively appropriate customer-managed proxy can be provided by proxy_url variable"
}
variable "vpc_endpoint_lambda_create" {
type = bool
default = false
description = "Create Ec2 VPC endpoint"
}
variable "vpc_endpoint_dynamodb_gateway_create" {
type = bool
default = false
description = "Create dynamodb gateway VPC endpoint"
}
variable "vpc_endpoint_autoscaling_create" {
type = bool
default = false
description = "Create autoscaling VPC endpoint"
}
variable "metadata_http_tokens" {
type = string
default = "required"
description = "Whether or not the metadata service requires session tokens, also referred to as Instance Metadata Service Version 2 (IMDSv2)"
}
variable "debug_down_backends_removal_timeout" {
type = string
default = "3h"
description = "Don't change this value without consulting weka support team. Timeout for removing down backends. Valid time units are ns, us (or µs), ms, s, m, h."
}
variable "custom_data" {
type = string
default = ""
description = "Custom data to pass to instances."
}
variable "install_cluster_dpdk" {
type = bool
default = true
description = "Install weka cluster with DPDK"
}
variable "ebs_kms_key_id" {
type = string
default = null
description = "The ARN of the AWS Key Management Service"
}
variable "ebs_encrypted" {
type = bool
default = true
description = "Enables EBS encryption on the volume"
}
variable "enable_lambda_vpc_config" {
type = bool
default = false
description = "Config lambda to run inside vpc"
}
variable "capacity_reservation_id" {
type = string
default = null
description = "The ID of the Capacity Reservation in which to run the backends"
}
variable "lambdas_custom_s3_bucket" {
type = string
description = "S3 bucket name for lambdas"
default = null
}
variable "lambdas_custom_s3_key" {
type = string
description = "S3 key for lambdas"
default = null
}
variable "set_default_fs" {
type = bool
description = "Set the default filesystem which will use the full available capacity"
default = true
}
variable "post_cluster_setup_script" {
type = string
description = "A script to run after the cluster is up"
default = ""
}