generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
1337 lines (1133 loc) · 43.4 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
variable "toolchain_resource_group" {
type = string
description = "Resource group within which the toolchain is created"
default = "Default"
}
variable "ibmcloud_api_key" {
type = string
description = "API key used to create the toolchains."
sensitive = true
}
variable "pipeline_ibmcloud_api_key_secret_name" {
type = string
description = "Name of the Cloud API key secret in the secret provider."
default = "ibmcloud-api-key"
}
variable "pipeline_doi_api_key_secret_name" {
type = string
description = "Name of the Cloud API key secret in the secret provider to access the toolchain containing the Devops Insights instance."
default = ""
}
variable "issues_repo_git_token_secret_name" {
type = string
description = "Name of the Git token secret in the secret provider."
default = "git-token"
}
variable "evidence_repo_git_token_secret_name" {
type = string
description = "Name of the Git token secret in the secret provider."
default = "git-token"
}
variable "inventory_repo_git_token_secret_name" {
type = string
description = "Name of the Git token secret in the secret provider."
default = "git-token"
}
variable "app_repo_git_token_secret_name" {
type = string
description = "Name of the Git token secret in the secret provider."
default = "git-token"
}
variable "pipeline_config_repo_git_token_secret_name" {
type = string
description = "Name of the Git token secret in the secret provider."
default = "git-token"
}
# SECRET CRNs
variable "app_repo_git_token_secret_crn" {
type = string
sensitive = true
description = "The CRN for the app repository Git Token."
default = ""
validation {
condition = startswith(var.app_repo_git_token_secret_crn, "crn:") || var.app_repo_git_token_secret_crn == ""
error_message = "Must be a CRN or left empty."
}
}
variable "issues_repo_git_token_secret_crn" {
type = string
sensitive = true
description = "The CRN for the Issues repository Git Token."
default = ""
validation {
condition = startswith(var.issues_repo_git_token_secret_crn, "crn:") || var.issues_repo_git_token_secret_crn == ""
error_message = "Must be a CRN or left empty."
}
}
variable "evidence_repo_git_token_secret_crn" {
type = string
sensitive = true
description = "The CRN for the Evidence repository Git Token."
default = ""
validation {
condition = startswith(var.evidence_repo_git_token_secret_crn, "crn:") || var.evidence_repo_git_token_secret_crn == ""
error_message = "Must be a CRN or left empty."
}
}
variable "inventory_repo_git_token_secret_crn" {
type = string
sensitive = true
description = "The CRN for the Inventory repository Git Token."
default = ""
validation {
condition = startswith(var.inventory_repo_git_token_secret_crn, "crn:") || var.inventory_repo_git_token_secret_crn == ""
error_message = "Must be a CRN or left empty."
}
}
variable "compliance_pipeline_repo_git_token_secret_crn" {
type = string
sensitive = true
description = "The CRN for the Compliance Pipeline repository Git Token."
default = ""
validation {
condition = startswith(var.compliance_pipeline_repo_git_token_secret_crn, "crn:") || var.compliance_pipeline_repo_git_token_secret_crn == ""
error_message = "Must be a CRN or left empty."
}
}
variable "pipeline_config_repo_git_token_secret_crn" {
type = string
sensitive = true
description = "The CRN for the Pipeline Config repository Git Token."
default = ""
validation {
condition = startswith(var.pipeline_config_repo_git_token_secret_crn, "crn:") || var.pipeline_config_repo_git_token_secret_crn == ""
error_message = "Must be a CRN or left empty."
}
}
variable "cos_api_key_secret_crn" {
type = string
sensitive = true
description = "The CRN for the Cloud Object Storage apikey."
default = ""
validation {
condition = startswith(var.cos_api_key_secret_crn, "crn:") || var.cos_api_key_secret_crn == ""
error_message = "Must be a CRN or left empty."
}
}
variable "pipeline_ibmcloud_api_key_secret_crn" {
type = string
sensitive = true
description = "The CRN for the IBMCloud apikey."
default = ""
validation {
condition = startswith(var.pipeline_ibmcloud_api_key_secret_crn, "crn:") || var.pipeline_ibmcloud_api_key_secret_crn == ""
error_message = "Must be a CRN or left empty."
}
}
variable "enable_pipeline_notifications" {
type = bool
description = "When enabled, pipeline run events will be sent to the Event Notifications and Slack integrations in the enclosing toolchain."
default = false
}
variable "environment_tag" {
type = string
description = "Tag name that represents the target environment in the inventory. Example: prod_latest."
default = "prod_latest"
}
variable "slack_webhook_secret_crn" {
type = string
sensitive = true
description = "The CRN for Slack Webhook secret."
default = ""
validation {
condition = startswith(var.slack_webhook_secret_crn, "crn:") || var.slack_webhook_secret_crn == ""
error_message = "Must be a CRN or left empty."
}
}
variable "artifactory_token_secret_crn" {
type = string
sensitive = true
description = "The CRN for the Artifactory secret."
default = ""
validation {
condition = startswith(var.artifactory_token_secret_crn, "crn:") || var.artifactory_token_secret_crn == ""
error_message = "Must be a CRN or left empty."
}
}
variable "scc_scc_api_key_secret_crn" {
type = string
sensitive = true
description = "The CRN for SCC apikey."
default = ""
validation {
condition = startswith(var.scc_scc_api_key_secret_crn, "crn:") || var.scc_scc_api_key_secret_crn == ""
error_message = "Must be a CRN or left empty."
}
}
variable "sonarqube_secret_crn" {
type = string
sensitive = true
description = "The CRN for the SonarQube secret."
default = ""
validation {
condition = startswith(var.sonarqube_secret_crn, "crn:") || var.sonarqube_secret_crn == ""
error_message = "Must be a CRN or left empty."
}
}
variable "pipeline_doi_api_key_secret_crn" {
type = string
sensitive = true
description = "The CRN for the pipeline DOI apikey."
default = ""
validation {
condition = startswith(var.pipeline_doi_api_key_secret_crn, "crn:") || var.pipeline_doi_api_key_secret_crn == ""
error_message = "Must be a CRN or left empty."
}
}
variable "toolchain_region" {
type = string
description = "IBM Cloud region where the toolchain is created"
default = "us-south"
}
variable "toolchain_name" {
type = string
description = "Name of the CC Toolchain."
default = "DevSecOps CC Toolchain - Terraform"
}
variable "toolchain_description" {
type = string
description = "Description for the CC Toolchain."
default = "Toolchain created with terraform template for DevSecOps CC Best Practices"
}
variable "app_repo_url" {
type = string
description = "This Git URL for the application repository."
default = ""
}
variable "compliance_pipeline_repo_url" {
type = string
default = ""
description = "Url of pipeline repo template to be cloned"
}
variable "compliance_pipeline_existing_repo_url" {
type = string
default = ""
description = "The URL of an existing compliance pipelines repository."
}
variable "compliance_pipeline_source_repo_url" {
type = string
default = ""
description = "The URL of a compliance pipelines repository to clone."
}
variable "inventory_repo_url" {
type = string
description = "This is a template repository to clone compliance-inventory for reference DevSecOps toolchain templates."
default = ""
}
variable "evidence_repo_url" {
type = string
description = "This is a template repository to clone compliance-evidence-locker for reference DevSecOps toolchain templates."
default = ""
}
variable "issues_repo_url" {
type = string
description = "This is a template repository to clone compliance-issues for reference DevSecOps toolchain templates."
default = ""
}
variable "pipeline_config_repo_existing_url" {
type = string
description = "Specify a repository containing a custom pipeline-config.yaml file."
default = ""
}
variable "pipeline_config_repo_clone_from_url" {
type = string
description = "Specify a repository to clone that contains a custom pipeline-config.yaml file."
default = ""
}
variable "pipeline_config_repo_branch" {
type = string
description = "Specify a branch of a repository to clone that contains a custom pipeline-config.yaml file."
default = ""
}
variable "pipeline_config_repo_auth_type" {
type = string
description = "Select the method of authentication that will be used to access the git provider. 'oauth' or 'pat'."
default = "oauth"
}
variable "pipeline_config_repo_issues_enabled" {
type = bool
description = "Set to `true` to enable issues."
default = false
}
variable "pipeline_config_repo_git_id" {
type = string
description = "Set this value to `github` for github.com, or to the GUID of a custom GitHub Enterprise server."
default = ""
}
variable "pipeline_config_repo_blind_connection" {
type = string
description = "Setting this value to `true` means the server is not addressable on the public internet. IBM Cloud will not be able to validate the connection details you provide. Certain functionality that requires API access to the git server will be disabled. Delivery pipeline will only work using a private worker that has network access to the git server."
default = ""
}
variable "pipeline_config_repo_title" {
type = string
description = "(Optional) The title of the server. e.g. My Git Enterprise Server."
default = ""
}
variable "pipeline_config_repo_root_url" {
type = string
description = "(Optional) The Root URL of the server. e.g. https://git.example.com."
default = ""
}
variable "pipeline_config_repo_traceability_enabled" {
type = bool
description = "Set to `true` to enable traceability."
default = false
}
variable "pipeline_config_repo_is_private_repo" {
type = bool
description = "Set to `true` to make repository private."
default = true
}
variable "pipeline_config_repo_initialization_type" {
type = string
description = "The initialization type for the repo. Can be `new`, `fork`, `clone`, `link`, `new_if_not_exists`, `clone_if_not_exists`, `fork_if_not_exists`."
default = ""
}
variable "pipeline_config_repo_name" {
type = string
description = "The repository name."
default = ""
}
variable "pipeline_config_repo_integration_owner" {
type = string
description = "The name of the integration owner."
default = ""
}
variable "inventory_repo_auth_type" {
type = string
description = "Select the method of authentication that will be used to access the git provider. 'oauth' or 'pat'."
default = "oauth"
}
variable "issues_repo_auth_type" {
type = string
description = "Select the method of authentication that will be used to access the git provider. 'oauth' or 'pat'."
default = "oauth"
}
variable "evidence_repo_auth_type" {
type = string
description = "Select the method of authentication that will be used to access the git provider. 'oauth' or 'pat'."
default = "oauth"
}
variable "app_repo_auth_type" {
type = string
description = "Select the method of authentication that will be used to access the git provider. 'oauth' or 'pat'."
default = "oauth"
}
variable "app_repo_integration_owner" {
type = string
description = "The name of the integration owner."
default = ""
}
variable "app_repo_clone_to_git_provider" {
type = string
description = "By default 'hostedgit', else use 'githubconsolidated' or 'gitlab'."
default = ""
}
variable "app_repo_clone_to_git_id" {
type = string
description = "Custom server GUID, or other options for 'git_id' field in the browser UI."
default = ""
}
variable "app_repo_git_provider" {
type = string
description = "By default 'hostedgit', else use 'githubconsolidated' or 'gitlab'."
default = "hostedgit"
}
variable "compliance_pipeline_repo_auth_type" {
type = string
description = "Select the method of authentication that will be used to access the git provider. 'oauth' or 'pat'."
default = "oauth"
}
variable "compliance_pipeline_repo_git_token_secret_name" {
type = string
description = "Name of the Git token secret in the secret provider."
default = "git-token"
}
variable "slack_webhook_secret_name" {
type = string
description = "Name of the webhook secret in the secret provider."
default = "slack-webhook"
}
variable "default_git_provider" {
type = string
default = "hostedgit"
description = "Choose the default git provider for app repo"
validation {
condition = contains(["hostedgit", "githubconsolidated", "gitlab"], var.default_git_provider)
error_message = "Must be either \"hostedgit\" or \"gitlab\" or \"githubconsolidated\"."
}
}
variable "compliance_pipeline_repo_git_provider" {
type = string
default = "hostedgit"
description = "Choose the default git provider for change management repo"
validation {
condition = contains(["hostedgit", "githubconsolidated", "gitlab"], var.compliance_pipeline_repo_git_provider)
error_message = "Must be either \"hostedgit\" or \"gitlab\" or \"githubconsolidated\"."
}
}
variable "compliance_pipeline_repo_integration_owner" {
type = string
description = "The name of the integration owner."
default = ""
}
variable "pipeline_config_repo_git_provider" {
type = string
default = "hostedgit"
description = "Git provider for pipeline repo config"
validation {
condition = contains(["hostedgit", "githubconsolidated", "gitlab"], var.pipeline_config_repo_git_provider)
error_message = "Must be either \"hostedgit\" or \"gitlab\" or \"githubconsolidated\" for pipeline config repo."
}
}
variable "inventory_repo_git_provider" {
type = string
default = "hostedgit"
description = "Git provider for inventory repo"
validation {
condition = contains(["hostedgit", "githubconsolidated", "gitlab"], var.inventory_repo_git_provider)
error_message = "Must be either \"hostedgit\" or \"gitlab\" or \"githubconsolidated\" for Inventory repo."
}
}
variable "evidence_repo_git_provider" {
type = string
default = "hostedgit"
description = "Git provider for evidence repo"
validation {
condition = contains(["hostedgit", "githubconsolidated", "gitlab"], var.evidence_repo_git_provider)
error_message = "Must be either \"hostedgit\" or \"gitlab\" or \"githubconsolidated\" for evidence repo."
}
}
variable "issues_repo_git_provider" {
type = string
default = "hostedgit"
description = "Git provider for issue repo "
validation {
condition = contains(["hostedgit", "githubconsolidated", "gitlab"], var.issues_repo_git_provider)
error_message = "Must be either \"hostedgit\" or \"gitlab\" or \"githubconsolidated\" for issue repo."
}
}
variable "issues_repo_integration_owner" {
type = string
description = "The name of the integration owner."
default = ""
}
variable "evidence_repo_integration_owner" {
type = string
description = "The name of the integration owner."
default = ""
}
variable "inventory_repo_integration_owner" {
type = string
description = "The name of the integration owner."
default = ""
}
variable "inventory_repo_issues_enabled" {
type = bool
description = "Set to `true` to enable issues."
default = false
}
variable "inventory_repo_git_id" {
type = string
description = "Set this value to `github` for github.com, or to the GUID of a custom GitHub Enterprise server."
default = ""
}
variable "inventory_repo_blind_connection" {
type = string
description = "Setting this value to `true` means the server is not addressable on the public internet. IBM Cloud will not be able to validate the connection details you provide. Certain functionality that requires API access to the git server will be disabled. Delivery pipeline will only work using a private worker that has network access to the git server."
default = ""
}
variable "inventory_repo_title" {
type = string
description = "(Optional) The title of the server. e.g. My Git Enterprise Server."
default = ""
}
variable "inventory_repo_root_url" {
type = string
description = "(Optional) The Root URL of the server. e.g. https://git.example.com."
default = ""
}
variable "inventory_repo_traceability_enabled" {
type = bool
description = "Set to `true` to enable traceability."
default = false
}
variable "inventory_repo_is_private_repo" {
type = bool
description = "Set to `true` to make repository private."
default = true
}
variable "inventory_repo_initialization_type" {
type = string
description = "The initialization type for the repo. Can be `new`, `fork`, `clone`, `link`, `new_if_not_exists`, `clone_if_not_exists`, `fork_if_not_exists`."
default = ""
}
variable "inventory_repo_name" {
type = string
description = "The repository name."
default = ""
}
variable "issues_repo_issues_enabled" {
type = bool
description = "Set to `true` to enable issues."
default = true
}
variable "issues_repo_git_id" {
type = string
description = "Set this value to `github` for github.com, or to the GUID of a custom GitHub Enterprise server."
default = ""
}
variable "issues_repo_blind_connection" {
type = string
description = "Setting this value to `true` means the server is not addressable on the public internet. IBM Cloud will not be able to validate the connection details you provide. Certain functionality that requires API access to the git server will be disabled. Delivery pipeline will only work using a private worker that has network access to the git server."
default = ""
}
variable "issues_repo_title" {
type = string
description = "(Optional) The title of the server. e.g. My Git Enterprise Server."
default = ""
}
variable "issues_repo_root_url" {
type = string
description = "(Optional) The Root URL of the server. e.g. https://git.example.com."
default = ""
}
variable "issues_repo_traceability_enabled" {
type = bool
description = "Set to `true` to enable traceability."
default = false
}
variable "issues_repo_is_private_repo" {
type = bool
description = "Set to `true` to make repository private."
default = true
}
variable "issues_repo_initialization_type" {
type = string
description = "The initialization type for the repo. Can be `new`, `fork`, `clone`, `link`, `new_if_not_exists`, `clone_if_not_exists`, `fork_if_not_exists`."
default = ""
}
variable "issues_repo_name" {
type = string
description = "The repository name."
default = ""
}
variable "evidence_repo_issues_enabled" {
type = bool
description = "Set to `true` to enable issues."
default = false
}
variable "evidence_repo_git_id" {
type = string
description = "Set this value to `github` for github.com, or to the GUID of a custom GitHub Enterprise server."
default = ""
}
variable "evidence_repo_blind_connection" {
type = string
description = "Setting this value to `true` means the server is not addressable on the public internet. IBM Cloud will not be able to validate the connection details you provide. Certain functionality that requires API access to the git server will be disabled. Delivery pipeline will only work using a private worker that has network access to the git server."
default = ""
}
variable "evidence_repo_title" {
type = string
description = "(Optional) The title of the server. e.g. My Git Enterprise Server."
default = ""
}
variable "evidence_repo_root_url" {
type = string
description = "(Optional) The Root URL of the server. e.g. https://git.example.com."
default = ""
}
variable "evidence_repo_traceability_enabled" {
type = bool
description = "Set to `true` to enable traceability."
default = false
}
variable "evidence_repo_is_private_repo" {
type = bool
description = "Set to `true` to make repository private."
default = true
}
variable "evidence_repo_initialization_type" {
type = string
description = "The initialization type for the repo. Can be `new`, `fork`, `clone`, `link`, `new_if_not_exists`, `clone_if_not_exists`, `fork_if_not_exists`."
default = ""
}
variable "evidence_repo_name" {
type = string
description = "The repository name."
default = ""
}
variable "compliance_pipelines_repo_git_id" {
type = string
description = "Set this value to `github` for github.com, or to the GUID of a custom GitHub Enterprise server."
default = ""
}
variable "compliance_pipelines_repo_blind_connection" {
type = string
description = "Setting this value to `true` means the server is not addressable on the public internet. IBM Cloud will not be able to validate the connection details you provide. Certain functionality that requires API access to the git server will be disabled. Delivery pipeline will only work using a private worker that has network access to the git server."
default = ""
}
variable "compliance_pipelines_repo_title" {
type = string
description = "(Optional) The title of the server. e.g. My Git Enterprise Server."
default = ""
}
variable "compliance_pipelines_repo_root_url" {
type = string
description = "(Optional) The Root URL of the server. e.g. https://git.example.com."
default = ""
}
variable "compliance_pipelines_repo_traceability_enabled" {
type = bool
description = "Set to `true` to enable traceability."
default = false
}
variable "compliance_pipelines_repo_is_private_repo" {
type = bool
description = "Set to `true` to make repository private."
default = false
}
variable "compliance_pipelines_repo_initialization_type" {
type = string
description = "The initialization type for the repo. Can be `new`, `fork`, `clone`, `link`, `new_if_not_exists`, `clone_if_not_exists`, `fork_if_not_exists`."
default = ""
}
variable "compliance_pipelines_repo_name" {
type = string
description = "The repository name."
default = "compliance-pipelines"
}
variable "compliance_pipeline_repo_issues_enabled" {
type = bool
description = "Set to `true` to enable issues."
default = false
}
variable "app_repo_branch" {
type = string
description = "The default branch of the app repo."
default = "master"
}
variable "app_repo_git_id" {
type = string
description = "The Git ID of the repository."
default = ""
}
variable "app_repo_blind_connection" {
type = string
description = "Setting this value to `true` means the server is not addressable on the public internet. IBM Cloud will not be able to validate the connection details you provide. Certain functionality that requires API access to the git server will be disabled. Delivery pipeline will only work using a private worker that has network access to the git server."
default = ""
}
variable "app_repo_title" {
type = string
description = "(Optional) The title of the server. e.g. My Git Enterprise Server."
default = ""
}
variable "app_repo_root_url" {
type = string
description = "(Optional) The Root URL of the server. e.g. https://git.example.com."
default = ""
}
variable "app_repo_is_private_repo" {
type = bool
description = "Set to `true` to make repository private."
default = true
}
variable "app_repo_issues_enabled" {
type = bool
description = "Set to `true` to enable issues."
default = false
}
variable "app_repo_traceability_enabled" {
type = bool
description = "Set to `true` to enable traceability."
default = false
}
variable "app_repo_initialization_type" {
type = string
description = "The initialization type for the repo. Can be `new`, `fork`, `clone`, `link`, `new_if_not_exists`, `clone_if_not_exists`, `fork_if_not_exists`."
default = ""
}
variable "enable_slack" {
type = bool
description = "Set to true to create the integration."
default = false
}
variable "slack_channel_name" {
type = string
description = "The Slack channel that notifications will be posted to."
default = "my-channel"
}
variable "slack_team_name" {
type = string
description = "The Slack team name, which is the word or phrase before .slack.com in the team URL."
default = "my-team"
}
variable "slack_pipeline_fail" {
type = bool
description = "Generate pipeline failed notifications."
default = true
}
variable "slack_pipeline_start" {
type = bool
description = "Generate pipeline start notifications."
default = true
}
variable "slack_pipeline_success" {
type = bool
description = "Generate pipeline succeeded notifications."
default = true
}
variable "slack_toolchain_bind" {
type = bool
description = "Generate tool added to toolchain notifications."
default = true
}
variable "slack_toolchain_unbind" {
type = bool
description = "Generate tool removed from toolchain notifications."
default = true
}
variable "scc_integration_name" {
type = string
description = "The name of the SCC integration name."
default = "Security and Compliance"
}
variable "scc_enable_scc" {
type = bool
description = "Enable the SCC integration."
default = true
}
variable "scc_attachment_id" {
type = string
description = "An attachment ID. An attachment is configured under a profile to define how a scan will be run. To find the attachment ID, in the browser, in the attachments list, click on the attachment link, and a panel appears with a button to copy the attachment ID. This parameter is only relevant when the `scc_use_profile_attachment` parameter is enabled."
default = ""
}
variable "scc_instance_crn" {
type = string
description = "The Security and Compliance Center service instance CRN (Cloud Resource Name). This parameter is only relevant when the `scc_use_profile_attachment` parameter is enabled. The value must match the regular expression."
default = ""
}
variable "scc_profile_name" {
type = string
description = "The name of a Security and Compliance Center profile. Use the `IBM Cloud Framework for Financial Services` profile, which contains the DevSecOps Toolchain rules. Or use a user-authored customized profile that has been configured to contain those rules. This parameter is only relevant when the `scc_use_profile_attachment` parameter is enabled."
default = ""
}
variable "scc_profile_version" {
type = string
description = "The version of a Security and Compliance Center profile, in SemVer format, like `0.0.0`. This parameter is only relevant when the `scc_use_profile_attachment` parameter is enabled."
default = ""
}
variable "scc_use_profile_attachment" {
type = string
description = "Set to `enabled` to enable use profile with attachment, so that the scripts in the pipeline can interact with the Security and Compliance Center service. When enabled, other parameters become relevant; `scc_scc_scc_api_key_secret_name`, `scc_instance_crn`, `scc_profile_name`, `scc_profile_version`, `scc_attachment_id`."
default = "disabled"
}
variable "scc_scc_api_key_secret_name" {
type = string
description = "The Security and Compliance Center api-key secret in the secret provider."
default = "scc-api-key"
}
variable "cos_api_key_secret_name" {
type = string
description = "COS API key"
default = "cos-api-key"
}
variable "cos_endpoint" {
type = string
description = "COS endpoint name."
default = ""
}
variable "cos_bucket_name" {
type = string
description = "COS bucket name."
default = ""
}
variable "cos_dashboard_url" {
type = string
description = "The dashboard URL for the COS toolcard."
default = "https://cloud.ibm.com/objectstorage"
}
variable "cos_documentation_url" {
type = string
description = "The documentation URL that appears on the tool card."
default = "https://cloud.ibm.com/objectstorage"
}
variable "cos_description" {
type = string
description = "The COS description on the tool card."
default = "Cloud Object Storage to store evidences within DevSecOps Pipelines"
}
variable "cos_integration_name" {
type = string
description = "The name of the COS integration."
default = "Evidence Store"
}
variable "sm_secret_group" {
type = string
description = "Group in Secrets Manager for organizing/grouping secrets."
default = "Default"
}
variable "sm_resource_group" {
type = string
description = "The resource group containing the Secrets Manager instance for your secrets. Not required if using a Secrets Manager CRN instance."
default = "Default"
}
variable "sm_name" {
type = string
description = "Name of the Secrets Manager instance where the secrets are stored. Not required if using a Secrets Manager CRN instance."
default = "sm-compliance-secrets"
}
variable "sm_location" {
type = string
description = "IBM Cloud location/region containing the Secrets Manager instance. Not required if using a Secrets Manager CRN instance."
default = "us-south"
}
variable "sm_instance_crn" {
type = string
description = "The CRN of the Secrets Manager instance."
default = ""
}
variable "kp_resource_group" {
type = string
description = "The resource group containing the Key Protect instance for your secrets."
default = "Default"
}
variable "kp_name" {
type = string
description = "Name of the Key Protect instance where the secrets are stored."
default = "kp-compliance-secrets"
}
variable "kp_location" {
type = string
description = "IBM Cloud location/region containing the Key Protect instance."
default = "us-south"
}
variable "enable_key_protect" {
type = bool
description = "Set to enable Key Protect Integration."
default = false
}
variable "enable_secrets_manager" {
type = bool
description = "Set to enable Secrets Manager Integration."
default = true
}
variable "repositories_prefix" {
type = string
description = "Prefix name for the cloned compliance repos."
default = "compliance"
}
variable "authorization_policy_creation" {
type = string
description = "Set to disabled if you do not want this policy auto created."
default = ""
}
variable "enable_insights" {
type = bool
description = "Set to `true` to enable the DevOps Insights integration."
default = true
}
variable "link_to_doi_toolchain" {
description = "Enable a link to a DevOps Insights instance in another toolchain, true or false."
type = bool
default = false
}
variable "doi_toolchain_id" {
type = string