-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathvariables.tf
861 lines (731 loc) · 23.1 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
variable "single_az_ebs_gp3_storage_class_enabled" {
description = "Whether to enable the Single AZ storage class or not."
default = false
type = bool
}
variable "single_az_sc_config" {
description = "Name and regions for storage class in Key-Value pair."
default = []
type = list(any)
}
variable "cluster_autoscaler_enabled" {
description = "Whether to enable the Cluster Autoscaler add-on or not."
default = false
type = bool
}
variable "cluster_autoscaler_chart_version" {
description = "Version of the cluster autoscaler helm chart"
default = "9.29.0"
type = string
}
variable "cluster_autoscaler_helm_config" {
description = "CoreDNS Autoscaler Helm Chart config"
type = any
default = {}
}
variable "metrics_server_enabled" {
description = "Enable or disable the metrics server add-on for EKS cluster."
default = false
type = bool
}
variable "metrics_server_helm_config" {
description = "Metrics Server Helm Chart config"
type = any
default = {}
}
variable "metrics_server_helm_version" {
description = "Version of the metrics server helm chart"
default = "3.11.0"
type = string
}
variable "cert_manager_enabled" {
description = "Enable or disable the cert manager add-on for EKS cluster."
default = false
type = bool
}
variable "cert_manager_install_letsencrypt_r53_issuers" {
description = "Enable or disable the creation of Route53 issuer while installing cert manager."
default = false
type = bool
}
variable "cert_manager_helm_config" {
description = "Cert Manager Helm Chart config"
type = any
default = {}
}
variable "cert_manager_irsa_policies" {
description = "Additional IAM policies for a IAM role for service accounts"
type = list(string)
default = []
}
variable "cert_manager_domain_names" {
description = "Domain names of the Route53 hosted zone to use with cert-manager"
type = list(string)
default = []
}
variable "cert_manager_kubernetes_svc_image_pull_secrets" {
description = "list(string) of kubernetes imagePullSecrets"
type = list(string)
default = []
}
variable "eks_cluster_name" {
description = "Fetch Cluster ID of the cluster"
default = ""
type = string
}
variable "efs_storage_class_enabled" {
description = "Enable or disable the Amazon Elastic File System (EFS) add-on for EKS cluster."
default = false
type = bool
}
variable "private_subnet_ids" {
description = "Private subnets of the VPC which can be used by EFS, argocd, workflow and k8s dashboard"
default = [""]
type = list(string)
}
variable "public_subnet_ids" {
description = "Public subnets of the VPC which can be used by argocd, workflow and k8s dashboard"
default = [""]
type = list(string)
}
variable "aws_efs_csi_driver_helm_config" {
description = "AWS EFS CSI driver Helm Chart config"
type = any
default = {}
}
variable "keda_enabled" {
description = "Enable or disable Kubernetes Event-driven Autoscaling (KEDA) add-on for autoscaling workloads."
type = bool
default = false
}
variable "keda_helm_config" {
description = "KEDA Event-based autoscaler add-on config"
type = any
default = {}
}
variable "keda_irsa_policies" {
description = "Additional IAM policies for a IAM role for service accounts"
type = list(string)
default = []
}
variable "environment" {
description = "Environment identifier for the Amazon Elastic Kubernetes Service (EKS) cluster."
default = ""
type = string
}
variable "external_secrets_enabled" {
description = "Enable or disable External Secrets operator add-on for managing external secrets."
default = false
type = bool
}
variable "private_ingress_nginx_enabled" {
description = "Control wheather to install public nlb or private nlb. Default is private"
type = bool
default = false
}
variable "ingress_nginx_config" {
description = "Configure ingress-nginx to setup addons"
type = object({
ingress_class_name = string
enable_service_monitor = bool
values = any
namespace = string
})
default = {
ingress_class_name = "ingress-nginx"
enable_service_monitor = false
values = {}
namespace = "ingress-nginx"
}
}
variable "private_ingress_nginx_config" {
description = "Configure private-ingress-nginx to setup addons"
type = object({
ingress_class_name = string
enable_service_monitor = bool
values = any
namespace = string
})
default = {
ingress_class_name = "private-nginx"
enable_service_monitor = false
values = {}
namespace = "private-nginx"
}
}
variable "vpa_config" {
description = "Configure VPA CRD to setup addon"
type = object({
values = list(string)
})
default = {
values = []
}
}
variable "karpenter_helm_config" {
description = "Karpenter autoscaler add-on config"
type = any
default = {}
}
variable "external_secrets_irsa_policies" {
description = "Additional IAM policies for a IAM role for service accounts"
type = list(string)
default = []
}
variable "coredns_hpa_helm_config" {
description = "CoreDNS Autoscaler Helm Chart config"
type = any
default = {}
}
variable "external_secrets_ssm_parameter_arns" {
description = "List of Systems Manager Parameter ARNs that contain secrets to mount using External Secrets"
type = list(string)
default = ["arn:aws:ssm:*:*:parameter/*"]
}
variable "external_secrets_secrets_manager_arns" {
description = "List of Secrets Manager ARNs that contain secrets to mount using External Secrets"
type = list(string)
default = ["arn:aws:secretsmanager:*:*:secret:*"]
}
variable "external_secrets_helm_config" {
type = any
default = {}
description = "External Secrets operator Helm Chart config"
}
variable "aws_load_balancer_controller_enabled" {
description = "Enable or disable AWS Load Balancer Controller add-on for managing and controlling load balancers in Kubernetes."
default = false
type = bool
}
variable "aws_load_balancer_controller_helm_config" {
description = "Configuration for the AWS Load Balancer Controller Helm release"
type = object({
values = any
namespace = string
load_balancer_controller_name = string
})
default = {
values = []
namespace = ""
load_balancer_controller_name = ""
}
}
variable "argocd_manage_add_ons" {
description = "Enable managing add-on configuration via ArgoCD App of Apps"
type = bool
default = false
}
variable "name" {
description = "Specify the name prefix of the EKS cluster resources."
default = ""
type = string
}
variable "vpc_id" {
description = "ID of the VPC where the cluster and its nodes will be provisioned"
default = ""
type = string
}
variable "cert_manager_letsencrypt_email" {
description = "Specifies the email address to be used by cert-manager to request Let's Encrypt certificates"
default = ""
type = string
}
variable "kms_key_arn" {
description = "ARN of the KMS key used to encrypt AWS resources in the EKS cluster."
default = ""
type = string
}
variable "kms_policy_arn" {
description = "Specify the ARN of KMS policy, for service accounts."
default = ""
type = string
}
variable "karpenter_enabled" {
description = "Enable or disable Karpenter, a Kubernetes-native, multi-tenant, and auto-scaling solution for containerized workloads on Kubernetes."
default = false
type = bool
}
variable "reloader_enabled" {
description = "Enable or disable Reloader, a Kubernetes controller to watch changes in ConfigMap and Secret objects and trigger an application reload on their changes."
default = false
type = bool
}
variable "reloader_helm_config" {
description = "Reloader Helm Chart config"
type = any
default = {}
}
variable "worker_iam_role_name" {
description = "Specify the IAM role for the nodes that will be provisioned through karpenter"
default = ""
type = string
}
variable "worker_iam_role_arn" {
description = "Specify the IAM role Arn for the nodes"
default = ""
type = string
}
variable "data_plane_wait_arn" {
description = "Addon deployment will not proceed until this value is known. Set to node group/Fargate profile ARN to wait for data plane to be ready before provisioning addons"
type = string
default = ""
}
variable "aws_node_termination_handler_enabled" {
description = "Enable or disable node termination handler"
default = false
type = bool
}
variable "aws_node_termination_handler_helm_config" {
description = "AWS Node Termination Handler Helm Chart config"
type = any
default = {}
}
variable "aws_node_termination_handler_irsa_policies" {
description = "Additional IAM policies for a IAM role for service accounts"
type = list(string)
default = []
}
variable "amazon_eks_vpc_cni_enabled" {
description = "Enable or disable the installation of the Amazon EKS VPC CNI addon. "
default = false
type = bool
}
variable "service_monitor_crd_enabled" {
description = "Enable or disable the installation of Custom Resource Definitions (CRDs) for Prometheus Service Monitor. "
default = false
type = bool
}
variable "velero_enabled" {
description = "Enable or disable the installation of Velero, which is a backup and restore solution for Kubernetes clusters."
default = false
type = bool
}
variable "velero_config" {
description = "Configuration to provide settings for Velero, including which namespaces to backup, retention period, backup schedule, and backup bucket name."
default = {
namespaces = "" ## If you want full cluster backup, leave it blank else provide namespace.
slack_botToken = ""
slack_appToken = ""
slack_notification_channel_name = ""
retention_period_in_days = 45
schedule_backup_cron_time = ""
velero_backup_name = ""
backup_bucket_name = ""
}
type = any
}
variable "velero_notification_enabled" {
description = "Enable or disable the notification for velero backup."
default = false
type = bool
}
variable "ingress_nginx_enabled" {
description = "Control wheather to install public nlb or private nlb. Default is private"
type = bool
default = false
}
variable "node_termination_handler_version" {
description = "Specify the version of node termination handler"
default = "0.21.0"
type = string
}
variable "auto_scaling_group_names" {
description = "List of self-managed node groups autoscaling group names"
type = list(string)
default = []
}
variable "kubeclarity_hostname" {
description = "Specify the hostname for the Kubeclarity. "
default = ""
type = string
}
variable "kubeclarity_enabled" {
description = "Enable or disable the deployment of an kubeclarity for Kubernetes."
default = false
type = bool
}
variable "kubeclarity_namespace" {
description = "Name of the Kubernetes namespace where the kubeclarity deployment will be deployed."
default = "kubeclarity"
type = string
}
variable "kubecost_enabled" {
description = "Enable or disable the deployment of an Kubecost for Kubernetes."
type = bool
default = false
}
variable "kubecost_hostname" {
description = "Specify the hostname for the kubecsot. "
default = ""
type = string
}
variable "cluster_issuer" {
description = "Specify the letsecrypt cluster-issuer for ingress tls. "
default = "letsencrypt-prod"
type = string
}
#-----------EKS MANAGED ADD-ONS------------
variable "enable_ipv6" {
description = "Enable Ipv6 network. Attaches new VPC CNI policy to the IRSA role"
type = bool
default = false
}
variable "amazon_eks_aws_ebs_csi_driver_config" {
description = "configMap for AWS EBS CSI Driver add-on"
type = any
default = {}
}
variable "enable_amazon_eks_aws_ebs_csi_driver" {
description = "Enable EKS Managed AWS EBS CSI Driver add-on; enable_amazon_eks_aws_ebs_csi_driver and enable_self_managed_aws_ebs_csi_driver are mutually exclusive"
type = bool
default = false
}
variable "enable_self_managed_aws_ebs_csi_driver" {
description = "Enable self-managed aws-ebs-csi-driver add-on; enable_self_managed_aws_ebs_csi_driver and enable_amazon_eks_aws_ebs_csi_driver are mutually exclusive"
type = bool
default = false
}
variable "self_managed_aws_ebs_csi_driver_helm_config" {
description = "Self-managed aws-ebs-csi-driver Helm chart config"
type = any
default = {}
}
variable "custom_image_registry_uri" {
description = "Custom image registry URI map of `{region = dkr.endpoint }`"
type = map(string)
default = {}
}
variable "ipv6_enabled" {
description = "whether IPv6 enabled or not"
type = bool
default = false
}
variable "defectdojo_enabled" {
description = "Enable defectdojo for service mesh."
default = false
type = bool
}
variable "defectdojo_hostname" {
description = "Specify the hostname for the kubecsot. "
default = ""
type = string
}
variable "storage_class_name" {
description = "Specify the hostname for the kubecsot. "
default = "infra-service-sc"
type = string
}
variable "falco_enabled" {
description = "Determines whether Falco is enabled."
default = false
type = bool
}
variable "slack_webhook" {
description = "The Slack webhook URL used for notifications."
default = ""
type = string
}
variable "coredns_hpa_enabled" {
description = "Determines whether Horizontal Pod Autoscaling (HPA) for CoreDNS is enabled."
default = false
type = bool
}
variable "kubernetes_dashboard_enabled" {
description = "Determines whether k8s-dashboard is enabled or not"
default = false
type = bool
}
variable "kubernetes_dashboard_config" {
description = "Specify all the configuration setup here"
type = object({
k8s_dashboard_ingress_load_balancer = string
alb_acm_certificate_arn = string
k8s_dashboard_hostname = string
private_alb_enabled = bool
ingress_class_name = string
})
default = {
k8s_dashboard_ingress_load_balancer = ""
alb_acm_certificate_arn = ""
k8s_dashboard_hostname = ""
private_alb_enabled = false
ingress_class_name = ""
}
}
variable "argocd_enabled" {
description = "Determine whether argocd is enabled or not"
default = false
type = bool
}
variable "argocd_config" {
type = object({
hostname = string
values_yaml = any
redis_ha_enabled = bool
autoscaling_enabled = bool
slack_notification_token = string
argocd_notifications_enabled = bool
ingress_class_name = string
namespace = string
argocd_ingress_load_balancer = string
private_alb_enabled = bool
alb_acm_certificate_arn = string
})
default = {
hostname = ""
values_yaml = {}
redis_ha_enabled = false
autoscaling_enabled = false
slack_notification_token = ""
argocd_notifications_enabled = false
ingress_class_name = ""
argocd_ingress_load_balancer = "nlb"
namespace = "argocd"
private_alb_enabled = false
alb_acm_certificate_arn = ""
}
}
variable "argoworkflow_enabled" {
description = "Determine whether argocd-workflow is enabled or not"
default = false
type = bool
}
variable "argoworkflow_config" {
type = object({
values = any
namespace = string
hostname = string
ingress_class_name = string
autoscaling_enabled = bool
argoworkflow_ingress_load_balancer = string
private_alb_enabled = bool
alb_acm_certificate_arn = string
})
default = {
values = {}
namespace = "argocd"
hostname = ""
ingress_class_name = ""
autoscaling_enabled = true
argoworkflow_ingress_load_balancer = "nlb"
private_alb_enabled = false
alb_acm_certificate_arn = ""
}
}
variable "argorollout_enabled" {
description = "Determine whether argo-rollout is enabled or not"
default = false
type = bool
}
variable "argorollout_config" {
type = object({
values = any
namespace = string
hostname = string
ingress_class_name = string
enable_dashboard = bool
argorollout_ingress_load_balancer = string
private_alb_enabled = bool
alb_acm_certificate_arn = string
chart_version = string
})
default = {
values = {}
namespace = "argocd"
hostname = ""
ingress_class_name = ""
enable_dashboard = false
argorollout_ingress_load_balancer = "nlb"
private_alb_enabled = false
alb_acm_certificate_arn = ""
chart_version = "2.38.0"
}
}
variable "argoproject_config" {
type = object({
name = string
})
default = {
name = ""
}
}
variable "k8s_dashboard_hostname" {
description = "Specify the hostname for the k8s dashboard. "
default = ""
type = string
}
variable "k8s_dashboard_ingress_load_balancer" {
description = "Controls whether to enable ALB Ingress or not."
type = string
default = "nlb"
}
variable "alb_acm_certificate_arn" {
description = "ARN of the ACM certificate to be used for ALB Ingress."
type = string
default = ""
}
variable "tags" {
description = "Additional tags (e.g. `map('BusinessUnit`,`XYZ`)"
type = map(string)
default = {}
}
variable "irsa_iam_role_path" {
description = "IAM role path for IRSA roles"
type = string
default = "/"
}
variable "irsa_iam_permissions_boundary" {
description = "IAM permissions boundary for IRSA roles"
type = string
default = ""
}
variable "eks_oidc_provider" {
description = "The OpenID Connect identity provider (issuer URL without leading `https://`)"
type = string
default = null
}
variable "eks_cluster_endpoint" {
description = "Endpoint for your Kubernetes API server"
type = string
default = null
}
variable "eks_cluster_version" {
description = "The Kubernetes version for the cluster"
type = string
default = null
}
variable "karpenter_irsa_policies" {
description = "Additional IAM policies for a IAM role for service accounts"
type = list(string)
default = []
}
variable "karpenter_node_iam_instance_profile" {
description = "Karpenter Node IAM Instance profile id"
type = string
default = ""
}
variable "cluster_proportional_autoscaler_enabled" {
description = "Whether to enable the Cluster proportional Autoscaler add-on or not."
default = false
type = bool
}
variable "cluster_proportional_autoscaler_chart_version" {
description = "Version of the cluster proportional autoscaler helm chart"
default = "1.1.0"
type = string
}
variable "cluster_proportional_autoscaler_helm_config" {
description = "Configuration options for the Cluster Proportional Autoscaler Helm chart."
type = any
default = {}
}
variable "vpc_cni_version" {
description = "Specify VPC CNI addons version"
default = "v1.19.0-eksbuild.1"
type = string
}
variable "ebs_csi_driver_version" {
description = "Version of the ebs csi driver addon"
default = "v1.36.0-eksbuild.1"
type = string
}
variable "metrics_server_version" {
description = "Version of the metrics server addon"
default = "3.12.1"
type = string
}
variable "cluster_autoscaler_version" {
description = "Version of the cluster autoscaler addon"
default = "9.37.0"
type = string
}
variable "aws_node_termination_handler_version" {
description = "Version of the aws node termination handler addon"
default = "0.21.0"
type = string
}
variable "keda_version" {
description = "Version of the keda addon"
default = "2.14.2"
type = string
}
variable "karpenter_version" {
description = "Version of the karpenter addon"
default = "1.0.6"
type = string
}
variable "external_secrets_version" {
description = "Version of the external secrets addon"
default = "0.9.19"
type = string
}
variable "cert_manager_version" {
description = "Version of the cert manager addon"
default = "v1.15.1"
type = string
}
variable "reloader_version" {
description = "Version of the reloader addon"
default = "v1.0.115"
type = string
}
variable "ingress_nginx_version" {
description = "Version of the ingress nginx addon"
default = "4.11.0"
type = string
}
variable "private_ingress_nginx_version" {
description = "Version of the ingress nginx addon"
default = "4.11.0"
type = string
}
variable "aws_load_balancer_controller_version" {
description = "Version of the aws load balancer controller addon"
default = "1.8.1"
type = string
}
variable "kubernetes_dashboard_version" {
description = "Version of the kubernetes dashboard addon"
default = "6.0.8"
type = string
}
variable "argocd_version" {
description = "Version of the argocd addon"
default = "7.3.11"
type = string
}
variable "argoworkflow_version" {
description = "Version of the argoworkflow addon"
default = "0.29.2"
type = string
}
variable "kubeclarity_version" {
description = "Version of the kubeclarity addon"
default = "2.23.0"
type = string
}
variable "kubecost_version" {
description = "Version of the kubecost addon"
default = "v2.1.0-eksbuild.1"
type = string
}
variable "falco_version" {
description = "Version of the falco addon"
default = "4.0.0"
type = string
}
variable "efs_version" {
description = "Version of the efs addon"
default = "2.3.2"
type = string
}
variable "vpa_enabled" {
description = "Choose whether to enable vpa or not"
default = false
type = bool
}
variable "vpa_version" {
description = "Version of VPA CRD"
default = "9.9.0"
type = string
}