-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathvariables.tf
1681 lines (1428 loc) · 48 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
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# To customise the infrastructure you must provide the value for each of these parameters in config.tfvar
################################################################################
# Common Variables
################################################################################
variable "region" {
description = "Name of the AWS region."
type = string
validation {
condition = can(regex("(us(-gov)?|ap|ca|cn|eu|sa)-(central|(north|south)?(east|west)?)-[1-9]", var.region))
error_message = "Invalid region name. Must be a valid AWS region."
}
}
variable "environment_name" {
description = "Name for this environment that is going to be deployed. The value will be used to form the name of some resources."
type = string
validation {
condition = can(regex("^[a-z][a-z0-9\\-]{1,24}$", var.environment_name))
error_message = "Invalid environment name. Valid name is up to 24 characters starting with lower case alphabet and followed by alphanumerics. '-' is allowed as well."
}
}
variable "eks_version" {
description = "EKS K8s version"
default = "1.30"
type = string
validation {
condition = can(regex("^1\\.3[0-9]$", var.eks_version))
error_message = "Invalid EKS K8S version. Valid versions are from 1.30 to 1.39."
}
}
variable "products" {
description = "List of the products to be installed."
type = list(string)
validation {
condition = alltrue([for o in var.products : contains(["jira", "bitbucket", "confluence", "bamboo", "crowd"], lower(o))])
error_message = "Non-supported product is provided. Only 'jira', 'bitbucket', 'confluence', 'bamboo', and 'crowd' are supported."
}
}
variable "resource_tags" {
description = "Additional tags for all resources to be created."
default = {
Terraform = "true"
}
type = map(string)
}
variable "instance_types" {
description = "Instance types that is preferred for node group."
default = ["m5.xlarge"]
type = list(string)
}
variable "instance_disk_size" {
description = "Size of the disk attached to the cluster instance."
default = 50
type = number
}
variable "min_cluster_capacity" {
description = "Minimum number of EC2 nodes for the EKS cluster"
default = 1
type = number
validation {
condition = var.min_cluster_capacity > 0 && var.min_cluster_capacity <= 20
error_message = "Minimum cluster capacity must be between 1 and 20 (included)."
}
}
variable "max_cluster_capacity" {
description = "Maximum number of EC2 nodes that cluster can scale up to."
default = 5
type = number
validation {
condition = var.max_cluster_capacity > 0 && var.max_cluster_capacity <= 20
error_message = "Maximum cluster capacity must be between 1 and 20 (included)."
}
}
variable "cluster_downtime_start" {
description = "Time to scale down the cluster"
default = null
type = number
}
variable "cluster_downtime_stop" {
description = "Time to scale up the cluster"
default = null
type = number
}
variable "cluster_downtime_timezone" {
description = "Time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti)."
default = "Etc/UTC"
type = string
}
variable "domain" {
description = "Domain name base for the ingress controller. The final domain is subdomain within this domain. (eg.: environment.domain.com)"
default = null
type = string
validation {
condition = can(regex("^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$", var.domain)) || var.domain == null
error_message = "Invalid domain name. Valid name is up to 63 characters starting with alphabet and followed by alphanumerics. '-' is allowed as well."
}
}
variable "local_helm_charts_path" {
description = "Path to a local directory with Helm charts to install"
default = ""
type = string
validation {
condition = can(regex("^[.?\\/?[a-zA-Z0-9|\\-|_]*]*$", var.local_helm_charts_path))
error_message = "Invalid local Helm chart path."
}
}
variable "logging_bucket" {
description = "S3 bucket to store logs."
default = null
type = string
validation {
condition = var.logging_bucket == null || can(regex("^[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$", var.logging_bucket))
error_message = "Invalid logging bucket name. Valid name is up to 63 characters starting with alphabet and followed by alphanumerics. '-' is allowed as well."
}
}
variable "eks_additional_roles" {
description = "Additional roles that have access to the cluster."
default = {}
type = map(any)
}
variable "whitelist_cidr" {
description = "List of CIDRs allowed accessing the application(s)."
default = ["0.0.0.0/0"]
type = list(string)
validation {
condition = alltrue([
for o in var.whitelist_cidr : can(regex("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])/([0-9]|1[0-9]|2[0-9]|3[0-2])$", o))])
error_message = "Invalid whitelist CIDR. Valid format is a list of '<IPv4>/[0-32]' e.g: [\"10.0.0.0/18\"]."
}
}
variable "enable_https_ingress" {
description = "If true, Nginx controller will listen on 443 as well."
type = bool
default = true
}
variable "additional_namespaces" {
description = "List of additional namespaces to create."
type = list(string)
default = []
}
variable "create_external_dns" {
description = "Should create external dns"
default = false
type = bool
}
################################################################################
# Monitoring Variables
################################################################################
variable "monitoring_enabled" {
description = "Enable kube-prometheus-stack for product node monitoring."
type = bool
default = false
}
variable "monitoring_grafana_expose_lb" {
description = "Expose Loadbalancer for Grafana."
type = bool
default = false
}
variable "prometheus_pvc_disk_size" {
description = "Size of prometheus PVC."
default = "10Gi"
type = string
}
variable "grafana_pvc_disk_size" {
description = "Size of Grafana PVC."
default = "10Gi"
type = string
}
variable "monitoring_custom_values_file" {
description = "Path to monitoring stack custom values file"
type = string
default = ""
}
################################################################################
# Snapshot Settings
################################################################################
variable "snapshots_json_file_path" {
description = "Absolute path to dcapt-snapshots.json"
type = string
default = ""
}
################################################################################
# Jira Settings
################################################################################
variable "jira_helm_chart_version" {
description = "Version of Jira Helm chart"
type = string
default = ""
}
variable "jira_custom_values_file" {
description = "Path to a custom values file"
type = string
default = ""
}
variable "jira_image_repository" {
description = "Jira image repository"
type = string
default = "atlassian/jira-software"
}
variable "jira_version_tag" {
description = "Version of Jira Software"
type = string
default = null
}
variable "jira_replica_count" {
description = "Number of Jira application nodes"
type = number
default = 1
validation {
condition = var.jira_replica_count >= 0
error_message = "Number of nodes must be greater than or equal to 0."
}
}
variable "jira_termination_grace_period" {
description = "Termination grace period in seconds"
type = number
default = 30
}
variable "jira_installation_timeout" {
description = "Timeout for helm chart installation in minutes"
type = number
default = 15
}
variable "jira_cpu" {
description = "Number of CPUs for Jira instance"
type = string
default = "1"
}
variable "jira_mem" {
description = "Amount of memory for Jira instance"
type = string
default = "2Gi"
}
variable "jira_min_heap" {
description = "Minimum heap size for Jira instance"
type = string
default = "384m"
}
variable "jira_max_heap" {
description = "Maximum heap size for Jira instance"
type = string
default = "768m"
}
variable "jira_reserved_code_cache" {
description = "Reserved code cache for Jira instance"
type = string
default = "512m"
}
variable "jira_local_home_size" {
description = "Storage size for Jira local home"
type = string
default = "10Gi"
}
variable "jira_local_home_retention_policy_when_deleted" {
description = "Retention policy for Jira local home when deleted."
type = string
default = "Delete"
validation {
condition = var.jira_local_home_retention_policy_when_deleted == null || contains(["Delete", "Retain"], var.jira_local_home_retention_policy_when_deleted)
error_message = "Invalid retention policy. Expected values are: Delete, Retain."
}
}
variable "jira_local_home_retention_policy_when_scaled" {
description = "Retention policy for Jira local home when scaled."
type = string
default = "Retain"
validation {
condition = var.jira_local_home_retention_policy_when_scaled == null || contains(["Delete", "Retain"], var.jira_local_home_retention_policy_when_scaled)
error_message = "Invalid retention policy. Expected values are: Delete, Retain."
}
}
variable "jira_db_major_engine_version" {
description = "The database major version to use for Jira."
default = "14"
type = string
}
variable "jira_db_allocated_storage" {
description = "Allocated storage for database instance in GiB."
default = 100
type = number
}
variable "jira_db_instance_class" {
description = "Instance class of the RDS instance."
default = "db.t3.micro"
type = string
}
variable "jira_db_iops" {
description = "The requested number of I/O operations per second that the DB instance can support."
default = 1000
type = number
}
variable "jira_db_name" {
description = "The default DB name of the DB instance."
default = "jira"
type = string
}
variable "jira_db_snapshot_id" {
description = "The identifier for the DB snapshot to restore from. The snapshot should be in the same AWS region as the DB instance."
default = null
type = string
}
variable "jira_license" {
description = "Jira license."
type = string
sensitive = true
default = ""
}
variable "jira_db_master_username" {
description = "Master username for the Jira RDS instance."
type = string
default = null
validation {
condition = can(regex("^[a-zA-Z_]([a-zA-Z0-9_]).{5,30}$", var.jira_db_master_username)) || var.jira_db_master_username == null
error_message = "Master username must be set. It must be between 6 and 31 characters long and start with a letter/underscore and contain combination of numbers, letters, and underscore."
}
}
variable "jira_db_master_password" {
description = "Master password for the Jira RDS instance."
type = string
default = null
validation {
condition = can(regex("^([aA-zZ]|[0-9]|[!#$%^&*(){}?<>,.]).{8,}$", var.jira_db_master_password)) || var.jira_db_master_password == null
error_message = "Master password must be set. It must be at least 8 characters long and contain combination of numbers, letters, and special characters."
}
}
variable "jira_shared_home_size" {
description = "Storage size for Jira shared home"
type = string
default = "10Gi"
}
variable "jira_nfs_requests_cpu" {
description = "The minimum CPU compute to request for the NFS instance"
type = string
default = "1"
}
variable "jira_nfs_requests_memory" {
description = "The minimum amount of memory to allocate to the NFS instance"
type = string
default = "1Gi"
}
variable "jira_nfs_limits_cpu" {
description = "The maximum CPU compute to allocate to the NFS instance"
type = string
default = "2"
}
variable "jira_nfs_limits_memory" {
description = "The maximum amount of memory to allocate to the NFS instance"
type = string
default = "2Gi"
}
variable "jira_shared_home_snapshot_id" {
description = "EBS Snapshot ID with shared home content."
type = string
default = null
validation {
condition = var.jira_shared_home_snapshot_id == null || can(regex("^snap-\\w{17}$", var.jira_shared_home_snapshot_id))
error_message = "Provide correct EBS snapshot ID."
}
}
variable "jira_local_home_snapshot_id" {
description = "EBS Snapshot ID with local home content."
type = string
default = null
validation {
condition = var.jira_local_home_snapshot_id == null || can(regex("^snap-\\w{17}$", var.jira_local_home_snapshot_id))
error_message = "Provide correct EBS snapshot ID."
}
}
variable "jira_install_local_chart" {
description = "If true installs Jira using local Helm charts located in local_helm_charts_path"
default = false
type = bool
}
variable "jira_dataset_size" {
description = "The size of the dataset to restore from"
type = string
default = "large"
validation {
condition = var.jira_dataset_size == null || contains(["large", "small"], var.jira_dataset_size)
error_message = "Invalid dataset size. Expected values are: small, large"
}
}
variable "jira_additional_jvm_args" {
description = "List of additional JVM arguments to be passed to the server"
default = []
type = list(string)
}
################################################################################
# Confluence variables
################################################################################
variable "confluence_license" {
description = "Confluence license."
type = string
sensitive = true
default = null
}
variable "confluence_helm_chart_version" {
description = "Version of confluence Helm chart"
type = string
default = ""
}
variable "confluence_custom_values_file" {
description = "Path to a custom values file"
type = string
default = ""
}
variable "confluence_version_tag" {
description = "Version tag for Confluence"
type = string
default = null
}
variable "confluence_replica_count" {
description = "Number of Confluence application nodes"
type = number
default = 1
validation {
condition = var.confluence_replica_count >= 0
error_message = "Number of nodes must be greater than or equal to 0."
}
}
variable "confluence_termination_grace_period" {
description = "Termination grace period in seconds"
type = number
default = 30
}
variable "confluence_installation_timeout" {
description = "Timeout for helm chart installation in minutes"
type = number
default = 15
}
variable "confluence_install_local_chart" {
description = "If true installs Confluence using local Helm charts located in local_helm_charts_path"
default = false
type = bool
}
variable "confluence_cpu" {
description = "Number of CPUs for confluence instance"
type = string
default = "1"
}
variable "confluence_mem" {
description = "Amount of memory for confluence instance"
type = string
default = "1Gi"
}
variable "confluence_min_heap" {
description = "Minimum heap size for confluence instance"
type = string
default = "256m"
validation {
condition = can(regex("^([0-9]){1,5}[k|m|g]$", var.confluence_min_heap))
error_message = "Minimum heap size for confluence instance is invalid. (Correct form: 1g | 1024m | 2048k)."
}
}
variable "confluence_max_heap" {
description = "Maximum heap size for confluence instance"
type = string
default = "512m"
validation {
condition = can(regex("^([0-9]){1,5}[k|m|g]$", var.confluence_max_heap))
error_message = "Maximum heap size for confluence instance is invalid. (Correct form: 1g | 1024m | 2048k)."
}
}
variable "synchrony_cpu" {
description = "Number of CPUs for synchrony instance"
type = string
default = "2"
}
variable "synchrony_mem" {
description = "Amount of memory for synchrony instance"
type = string
default = "2.5Gi"
}
variable "synchrony_min_heap" {
description = "Minimum heap size for synchrony instance"
type = string
default = "1g"
validation {
condition = can(regex("^([0-9]){1,5}[k|m|g]$", var.synchrony_min_heap))
error_message = "Minimum heap size for synchrony instance is invalid. (Correct form: 1g | 1024m | 2048k)."
}
}
variable "synchrony_max_heap" {
description = "Maximum heap size for synchrony instance"
type = string
default = "2g"
validation {
condition = can(regex("^([0-9]){1,5}[k|m|g]$", var.synchrony_max_heap))
error_message = "Maximum heap size for synchrony instance is invalid. (Correct form: 1g | 1024m | 2048k)."
}
}
variable "synchrony_stack_size" {
description = "Stack size for synchrony instance"
type = string
default = "2048k"
validation {
condition = can(regex("^([0-9]){1,4}[k|m]$", var.synchrony_stack_size))
error_message = "Stack size for synchrony instance is invalid. (Correct form: 64m | 2048k)."
}
}
variable "confluence_local_home_size" {
description = "Storage size for Confluence local home"
type = string
default = "10Gi"
}
variable "confluence_local_home_retention_policy_when_deleted" {
description = "Retention policy for Confluence local home when deleted."
type = string
default = "Delete"
validation {
condition = var.confluence_local_home_retention_policy_when_deleted == null || contains(["Delete", "Retain"], var.confluence_local_home_retention_policy_when_deleted)
error_message = "Invalid retention policy. Expected values are: Delete, Retain."
}
}
variable "confluence_local_home_retention_policy_when_scaled" {
description = "Retention policy for Confluence local home when scaled."
type = string
default = "Retain"
validation {
condition = var.confluence_local_home_retention_policy_when_scaled == null || contains(["Delete", "Retain"], var.confluence_local_home_retention_policy_when_scaled)
error_message = "Invalid retention policy. Expected values are: Delete, Retain."
}
}
variable "confluence_db_major_engine_version" {
description = "The database major version to use for Confluence."
type = string
default = "14"
}
variable "confluence_db_allocated_storage" {
description = "Allocated storage for database instance in GiB."
default = 1000
type = number
}
variable "confluence_db_instance_class" {
description = "Instance class of the RDS instance."
default = "db.t3.micro"
type = string
}
variable "confluence_db_iops" {
description = "The requested number of I/O operations per second that the DB instance can support."
default = 1000
type = number
}
variable "confluence_db_name" {
description = "The default DB name of the DB instance."
default = "confluence"
type = string
}
variable "confluence_collaborative_editing_enabled" {
description = "If true, Collaborative editing service will be enabled."
type = bool
default = true
}
variable "confluence_db_snapshot_id" {
description = "The identifier for the Confluence DB snapshot to restore from."
default = null
type = string
}
variable "confluence_db_snapshot_build_number" {
description = "Confluence build number of the database snapshot."
type = string
default = null
}
variable "confluence_db_master_username" {
description = "Master username for the Confluence RDS instance."
type = string
default = null
}
variable "confluence_db_master_password" {
description = "Master password for the Confluence RDS instance."
type = string
default = null
}
variable "confluence_shared_home_size" {
description = "Storage size for Confluence shared home"
type = string
default = "10Gi"
}
variable "confluence_nfs_requests_cpu" {
description = "The minimum CPU compute to request for the NFS instance"
type = string
default = "1"
}
variable "confluence_nfs_requests_memory" {
description = "The minimum amount of memory to allocate to the NFS instance"
type = string
default = "1Gi"
}
variable "confluence_nfs_limits_cpu" {
description = "The maximum CPU compute to allocate to the NFS instance"
type = string
default = "2"
}
variable "confluence_nfs_limits_memory" {
description = "The maximum amount of memory to allocate to the NFS instance"
type = string
default = "2Gi"
}
variable "confluence_shared_home_snapshot_id" {
description = "EBS Snapshot ID with shared home content."
type = string
default = null
validation {
condition = var.confluence_shared_home_snapshot_id == null || can(regex("^snap-\\w{17}$", var.confluence_shared_home_snapshot_id))
error_message = "Provide correct EBS snapshot ID."
}
}
variable "confluence_local_home_snapshot_id" {
description = "EBS Snapshot ID with local home content."
type = string
default = null
validation {
condition = var.confluence_local_home_snapshot_id == null || can(regex("^snap-\\w{17}$", var.confluence_local_home_snapshot_id))
error_message = "Provide correct EBS snapshot ID."
}
}
variable "confluence_dataset_size" {
description = "The size of the dataset to restore from"
type = string
default = "large"
validation {
condition = var.confluence_dataset_size == null || contains(["large", "small"], var.confluence_dataset_size)
error_message = "Invalid dataset size. Expected values are: small, large"
}
}
variable "confluence_additional_jvm_args" {
description = "List of additional JVM arguments to be passed to the server"
default = []
type = list(string)
}
variable "confluence_opensearch_enabled" {
description = "If true, OpenSearch will be enabled."
type = bool
default = false
}
variable "confluence_opensearch_requests_cpu" {
description = "The minimum CPU compute to request for the OpenSearch instance"
type = string
default = "1"
}
variable "confluence_opensearch_requests_memory" {
description = "The minimum amount of memory to allocate to the OpenSearch instance"
type = string
default = "1Gi"
}
variable "confluence_opensearch_persistence_size" {
description = "OpenSearch persistent volume size"
type = string
default = "10Gi"
}
variable "confluence_opensearch_initial_admin_password" {
description = "Initial admin password for the Confluence OpenSearch instance."
type = string
default = null
validation {
condition = can(regex("^([aA-zZ]|[0-9]|[!@#$% &*()-_=+[]{}<>:?]).{12,}$", var.confluence_opensearch_initial_admin_password)) || var.confluence_opensearch_initial_admin_password == null
error_message = "Confluence OpenSearch initial password must be at least 12 characters long and contain combination of numbers, letters, and special characters."
}
}
variable "confluence_opensearch_snapshot_id" {
description = "EBS Snapshot ID with OpenSearch data."
type = string
default = null
validation {
condition = var.confluence_opensearch_snapshot_id == null || can(regex("^snap-\\w{17}$", var.confluence_opensearch_snapshot_id))
error_message = "Provide correct EBS snapshot ID."
}
}
################################################################################
# Bitbucket Variables
################################################################################
variable "bitbucket_helm_chart_version" {
description = "Version of Bitbucket Helm chart"
type = string
default = ""
}
variable "bitbucket_custom_values_file" {
description = "Path to a custom values file"
type = string
default = ""
}
variable "bitbucket_version_tag" {
description = "Version tag for Bitbucket"
type = string
default = null
}
variable "bitbucket_replica_count" {
description = "Number of Bitbucket application nodes"
type = number
default = 1
validation {
condition = var.bitbucket_replica_count >= 0
error_message = "Number of nodes must be greater than or equal to 0."
}
}
variable "bitbucket_termination_grace_period" {
description = "Termination grace period in seconds"
type = number
default = 30
}
variable "bitbucket_installation_timeout" {
description = "Timeout for helm chart installation in minutes"
type = number
default = 15
}
variable "bitbucket_license" {
description = "Bitbucket license."
type = string
sensitive = true
default = null
}
variable "bitbucket_admin_username" {
description = "Bitbucket system administrator username."
type = string
default = null
}
variable "bitbucket_admin_password" {
description = "Bitbucket system administrator password."
type = string
default = null
sensitive = true
}
variable "bitbucket_admin_display_name" {
description = "Bitbucket system administrator display name."
type = string
default = null
}
variable "bitbucket_admin_email_address" {
description = "Bitbucket system administrator email address."
type = string
default = null
}
variable "bitbucket_db_major_engine_version" {
description = "The database major version to use."
default = "14"
type = string
}
variable "bitbucket_db_allocated_storage" {
description = "Allocated storage for database instance in GiB."
default = 100
type = number
}
variable "bitbucket_db_instance_class" {
description = "Instance class of the RDS instance."
default = "db.t3.micro"
type = string
}
variable "bitbucket_db_iops" {
description = "The requested number of I/O operations per second that the DB instance can support."
default = 1000
type = number
}
variable "bitbucket_db_name" {
description = "The default DB name of the DB instance."
default = "bitbucket"
type = string
}
variable "bitbucket_display_name" {
description = "The display name of Bitbucket instance"
type = string
default = null
}
variable "bitbucket_cpu" {
description = "Number of CPUs for Bitbucket instance"
type = string
default = "1"
}
variable "bitbucket_mem" {
description = "Amount of memory for Bitbucket instance"
type = string
default = "1Gi"
}
variable "bitbucket_min_heap" {
description = "Minimum heap size for Bitbucket instance"
type = string
default = "256m"
}
variable "bitbucket_max_heap" {
description = "Maximum heap size for Bitbucket instance"
type = string
default = "512m"
}
variable "bitbucket_local_home_size" {
description = "Storage size for Bitbucket local home"
type = string
default = "10Gi"
}
variable "bitbucket_local_home_retention_policy_when_deleted" {
description = "Retention policy for Bitbucket local home when deleted."
type = string
default = "Delete"
validation {
condition = var.bitbucket_local_home_retention_policy_when_deleted == null || contains(["Delete", "Retain"], var.bitbucket_local_home_retention_policy_when_deleted)
error_message = "Invalid retention policy. Expected values are: Delete, Retain."
}
}
variable "bitbucket_local_home_retention_policy_when_scaled" {
description = "Retention policy for Bitbucket local home when scaled."
type = string
default = "Retain"
validation {
condition = var.bitbucket_local_home_retention_policy_when_scaled == null || contains(["Delete", "Retain"], var.bitbucket_local_home_retention_policy_when_scaled)
error_message = "Invalid retention policy. Expected values are: Delete, Retain."
}
}
variable "bitbucket_shared_home_size" {
description = "Storage size for Bitbucket shared home"
type = string
default = "10Gi"
}
variable "bitbucket_nfs_requests_cpu" {
description = "The minimum CPU compute to request for the NFS instance"
type = string
default = "1"
}
variable "bitbucket_nfs_requests_memory" {
description = "The minimum amount of memory to allocate to the NFS instance"
type = string
default = "1Gi"
}
variable "bitbucket_nfs_limits_cpu" {
description = "The maximum CPU compute to allocate to the NFS instance"
type = string
default = "2"
}
variable "bitbucket_nfs_limits_memory" {
description = "The maximum amount of memory to allocate to the NFS instance"
type = string
default = "2Gi"
}
variable "bitbucket_deploy_opensearch" {
description = "Install OpenSearch sub-chart with Bitbucket Helm chart"
type = bool
default = true
}
variable "bitbucket_opensearch_endpoint" {
description = "The external opensearch endpoint to be use by Bitbucket."
type = string
default = null
}
variable "bitbucket_opensearch_secret_name" {
description = "Secret name with credentials for the external OpenSearch instance."
type = string
default = null
}
variable "bitbucket_opensearch_secret_username_key" {
description = "Username key in the opensearch secret"
type = string
default = "username"
}
variable "bitbucket_opensearch_secret_password_key" {
description = "Password key in the opensearch secret"
type = string
default = "password"