Skip to content

Commit 0ef82bf

Browse files
committed
ci: add code engine support
1 parent 1480cab commit 0ef82bf

File tree

6 files changed

+3638
-3
lines changed

6 files changed

+3638
-3
lines changed

code-engine/main.tf

Lines changed: 709 additions & 0 deletions
Large diffs are not rendered by default.

code-engine/outputs.tf

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
##############################################################################
2+
# Outputs
3+
##############################################################################
4+
5+
output "compliance_ci_toolchain_id" {
6+
description = "The ID of the Compliance CI Toolchain"
7+
value = try(module.devsecops_ci_toolchain[0].toolchain_id, "")
8+
}
9+
10+
output "compliance_cd_toolchain_id" {
11+
description = "The ID of the Compliance CD Toolchain"
12+
value = try(module.devsecops_cd_toolchain[0].toolchain_id, "")
13+
}
14+
15+
output "compliance_cc_toolchain_id" {
16+
description = "The ID of the Compliance CC Toolchain"
17+
value = try(module.devsecops_cc_toolchain[0].toolchain_id, "")
18+
}
19+
20+
output "secrets_manager_instance_id" {
21+
description = "The Secrets Manage Instance ID"
22+
value = try(module.devsecops_ci_toolchain[0].secrets_manager_instance_id, "")
23+
}
24+
25+
output "key_protect_instance_id" {
26+
description = "The Key Protect Instance ID"
27+
value = try(module.devsecops_ci_toolchain[0].key_protect_instance_id, "")
28+
}
29+
30+
output "evidence_repo_url" {
31+
description = "The Evidence Repo URL"
32+
value = try(module.devsecops_ci_toolchain[0].evidence_repo_url, var.evidence_repo_url)
33+
}
34+
35+
output "issues_repo_url" {
36+
description = "The Issues Repo URL"
37+
value = try(module.devsecops_ci_toolchain[0].issues_repo_url, var.issues_repo_url)
38+
}
39+
40+
output "inventory_repo_url" {
41+
description = "The Inventory Repo URL"
42+
value = try(module.devsecops_ci_toolchain[0].inventory_repo_url, var.inventory_repo_url)
43+
}
44+
45+
output "app_repo_url" {
46+
description = "The App Repo URL"
47+
value = try(module.devsecops_ci_toolchain[0].app_repo_url, var.cc_app_repo_url)
48+
}
49+
50+
output "compliance_ci_toolchain_url" {
51+
description = "The Compliance CI Toolchain URL"
52+
value = try(module.devsecops_ci_toolchain[0].toolchain_url, "")
53+
}
54+
55+
output "compliance_cd_toolchain_url" {
56+
description = "The Compliance CD Toolchain URL"
57+
value = try(module.devsecops_cd_toolchain[0].toolchain_url, "")
58+
}
59+
60+
output "compliance_cc_toolchain_url" {
61+
description = "The Compliance CC Toolchain URL"
62+
value = try(module.devsecops_cc_toolchain[0].toolchain_url, "")
63+
}
64+
65+
output "ci_pipeline_id" {
66+
description = "The CI pipeline Id"
67+
value = try(module.devsecops_ci_toolchain[0].ci_pipeline_id, "")
68+
}
69+
70+
output "cd_pipeline_id" {
71+
description = "The CD pipeline Id"
72+
value = try(module.devsecops_cd_toolchain[0].cd_pipeline_id, "")
73+
}
74+
75+
output "cc_pipeline_id" {
76+
description = "The CC pipeline Id"
77+
value = try(module.devsecops_cc_toolchain[0].cc_pipeline_id, "")
78+
}
79+
80+
output "pr_pipeline_id" {
81+
description = "The PR pipeline Id"
82+
value = try(module.devsecops_ci_toolchain[0].pr_pipeline_id, "")
83+
}
84+
#############################################################################

code-engine/provider.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
provider "ibm" {
2+
ibmcloud_api_key = var.ibmcloud_api_key
3+
region = var.toolchain_region
4+
}

0 commit comments

Comments
 (0)