@@ -12,17 +12,6 @@ output "resource_group_id" {
1212 value = module. resource_group . resource_group_id
1313}
1414
15- output "scc_cos_kms_key_crn" {
16- description = " SCC COS KMS Key CRN"
17- # if passing an existing bucket, then no KMS key is in play here, so output will be null
18- value = var. existing_scc_cos_bucket_name != null ? null : local. scc_cos_kms_key_crn
19- }
20-
21- output "scc_cos_bucket_name" {
22- description = " SCC COS bucket name"
23- value = var. existing_scc_cos_bucket_name != null ? var. existing_scc_cos_bucket_name : module. cos [0 ]. buckets [local . scc_cos_bucket_name ]. bucket_name
24- }
25-
2615output "scc_id" {
2716 description = " SCC instance ID"
2817 value = module. scc . id
@@ -74,3 +63,49 @@ output "scc_workload_protection_access_key" {
7463 value = var. provision_scc_workload_protection ? module. scc_wp [0 ]. access_key : null
7564 sensitive = true
7665}
66+
67+ # #######################################################################################################################
68+ # SCC COS
69+ # #######################################################################################################################
70+
71+ output "scc_cos_kms_key_crn" {
72+ description = " SCC COS KMS Key CRN"
73+ # if passing an existing bucket, then no KMS key is in play here, so output will be null
74+ value = var. existing_scc_cos_bucket_name != null ? null : local. scc_cos_kms_key_crn
75+ }
76+
77+ output "scc_cos_bucket_name" {
78+ description = " SCC COS bucket name"
79+ value = var. existing_scc_cos_bucket_name != null ? var. existing_scc_cos_bucket_name : module. cos [0 ]. buckets [local . scc_cos_bucket_name ]. bucket_name
80+ }
81+
82+ output "scc_cos_bucket_config" {
83+ description = " List of buckets created"
84+ value = var. existing_scc_cos_bucket_name != null ? null : module. cos [0 ]. buckets [local . scc_cos_bucket_name ]
85+ }
86+
87+ output "scc_cos_instance_id" {
88+ description = " SCC COS instance id"
89+ value = var. existing_scc_cos_bucket_name != null ? null : module. cos [0 ]. cos_instance_id
90+ }
91+
92+ output "scc_cos_instance_guid" {
93+ description = " SCC COS instance guid"
94+ value = var. existing_scc_cos_bucket_name != null ? null : module. cos [0 ]. cos_instance_guid
95+ }
96+
97+ output "scc_cos_instance_name" {
98+ description = " SCC COS instance name"
99+ value = var. existing_scc_cos_bucket_name != null ? null : local. cos_instance_name
100+ }
101+
102+ output "scc_cos_instance_crn" {
103+ description = " SCC COS instance crn"
104+ value = var. existing_scc_cos_bucket_name != null ? null : module. cos [0 ]. cos_instance_crn
105+ }
106+
107+ output "scc_cos_resource_keys" {
108+ description = " List of resource keys"
109+ value = var. existing_scc_cos_bucket_name != null ? null : module. cos [0 ]. resource_keys
110+ sensitive = true
111+ }
0 commit comments