|
| 1 | +############################################################################## |
| 2 | +# Cluster Outputs |
| 3 | +############################################################################## |
| 4 | + |
| 5 | +output "cluster_name" { |
| 6 | + value = module.ocp_base.cluster_name |
| 7 | + description = "The name of the provisioned OpenShift cluster." |
| 8 | +} |
| 9 | + |
| 10 | +output "cluster_id" { |
| 11 | + value = module.ocp_base.cluster_id |
| 12 | + description = "The unique identifier assigned to the provisioned OpenShift cluster." |
| 13 | +} |
| 14 | + |
| 15 | +output "cluster_crn" { |
| 16 | + description = "The Cloud Resource Name (CRN) of the provisioned OpenShift cluster." |
| 17 | + value = module.ocp_base.cluster_crn |
| 18 | +} |
| 19 | + |
| 20 | +output "workerpools" { |
| 21 | + description = "A list of worker pools associated with the provisioned cluster" |
| 22 | + value = module.ocp_base.workerpools |
| 23 | +} |
| 24 | + |
| 25 | +output "ocp_version" { |
| 26 | + description = "The version of OpenShift running on the provisioned cluster." |
| 27 | + value = module.ocp_base.ocp_version |
| 28 | +} |
| 29 | + |
| 30 | + |
| 31 | +############################################################################## |
| 32 | +# VPC |
| 33 | +############################################################################## |
| 34 | + |
| 35 | +output "vpc_name" { |
| 36 | + description = "Name of the VPC created." |
| 37 | + value = module.vpc.vpc_name |
| 38 | +} |
| 39 | + |
| 40 | +output "vpc_id" { |
| 41 | + description = "ID of the VPC created." |
| 42 | + value = module.vpc.vpc_id |
| 43 | +} |
| 44 | + |
| 45 | +output "vpc_crn" { |
| 46 | + description = "CRN of the VPC created." |
| 47 | + value = module.vpc.vpc_crn |
| 48 | +} |
| 49 | + |
| 50 | +############################################################################## |
| 51 | +# Public Gateways |
| 52 | +############################################################################## |
| 53 | + |
| 54 | +output "public_gateways" { |
| 55 | + description = "Map of the public gateways by zone." |
| 56 | + value = module.vpc.public_gateways |
| 57 | +} |
| 58 | + |
| 59 | +############################################################################## |
| 60 | +# VPC flow logs |
| 61 | +############################################################################## |
| 62 | + |
| 63 | +output "vpc_flow_logs" { |
| 64 | + description = "Details of the VPC flow logs collector." |
| 65 | + value = module.vpc.vpc_flow_logs |
| 66 | +} |
| 67 | + |
| 68 | +############################################################################## |
| 69 | +# Network ACLs |
| 70 | +############################################################################## |
| 71 | + |
| 72 | +output "network_acls" { |
| 73 | + description = "List of shortnames and IDs of network ACLs." |
| 74 | + value = module.vpc.network_acls |
| 75 | +} |
| 76 | + |
| 77 | +############################################################################## |
| 78 | +# Subnet Outputs |
| 79 | +############################################################################## |
| 80 | + |
| 81 | +output "subnet_ids" { |
| 82 | + description = "The IDs of the subnets." |
| 83 | + value = module.vpc.subnet_ids |
| 84 | +} |
| 85 | + |
| 86 | +output "private_path_subnet_id" { |
| 87 | + description = "The IDs of the subnets." |
| 88 | + value = length(module.vpc.subnet_ids) > 0 ? module.vpc.subnet_ids[0] : null |
| 89 | +} |
| 90 | + |
| 91 | +output "subnet_detail_list" { |
| 92 | + description = "A list of subnets containing names, CIDR blocks, and zones." |
| 93 | + value = module.vpc.subnet_detail_list |
| 94 | +} |
| 95 | + |
| 96 | +output "subnet_zone_list" { |
| 97 | + description = "A list of subnet IDs and subnet zones." |
| 98 | + value = module.vpc.subnet_zone_list |
| 99 | +} |
| 100 | + |
| 101 | +output "subnet_detail_map" { |
| 102 | + description = "A map of subnets containing IDs, CIDR blocks, and zones." |
| 103 | + value = module.vpc.subnet_detail_map |
| 104 | +} |
| 105 | + |
| 106 | +############################################################################## |
| 107 | +# VPN Gateways Outputs |
| 108 | +############################################################################## |
| 109 | + |
| 110 | +output "vpn_gateways_name" { |
| 111 | + description = "List of names of VPN gateways." |
| 112 | + value = module.vpc.vpn_gateways_name |
| 113 | +} |
| 114 | + |
| 115 | +output "vpn_gateways_data" { |
| 116 | + description = "Details of VPN gateways data." |
| 117 | + value = module.vpc.vpn_gateways_data |
| 118 | +} |
| 119 | + |
| 120 | +############################################################################## |
| 121 | +# VPE Outputs |
| 122 | +############################################################################## |
| 123 | + |
| 124 | +output "vpe_ips" { |
| 125 | + description = "The reserved IPs for endpoint gateways." |
| 126 | + value = module.vpe_gateway.vpe_ips |
| 127 | +} |
| 128 | + |
| 129 | +output "vpe_crn" { |
| 130 | + description = "The CRN of the endpoint gateway." |
| 131 | + value = module.vpe_gateway.crn |
| 132 | +} |
| 133 | + |
| 134 | +############################################################################## |
| 135 | +# KMS Outputs |
| 136 | +############################################################################## |
| 137 | + |
| 138 | +output "kms_guid" { |
| 139 | + description = "KMS instance GUID" |
| 140 | + value = module.kms.kms_guid |
| 141 | +} |
| 142 | + |
| 143 | +output "kms_account_id" { |
| 144 | + description = "The account ID of the KMS instance." |
| 145 | + value = module.kms.kms_account_id |
| 146 | +} |
| 147 | + |
| 148 | +output "kms_instance_crn" { |
| 149 | + value = module.kms.key_protect_crn |
| 150 | + description = "The CRN of the KMS instance" |
| 151 | +} |
| 152 | + |
| 153 | +############################################################################## |
| 154 | +# Events Notification Outputs |
| 155 | +############################################################################## |
| 156 | + |
| 157 | +output "events_notification_crn" { |
| 158 | + description = "Event Notification crn" |
| 159 | + value = module.event_notifications.crn |
| 160 | +} |
| 161 | + |
| 162 | +output "events_notification_guid" { |
| 163 | + description = "Event Notification guid" |
| 164 | + value = module.event_notifications.guid |
| 165 | +} |
| 166 | + |
| 167 | +############################################################################## |
| 168 | +# Secrets Manager Outputs |
| 169 | +############################################################################## |
| 170 | + |
| 171 | +output "secrets_manager_guid" { |
| 172 | + description = "GUID of Secrets Manager instance" |
| 173 | + value = module.secrets_manager.secrets_manager_guid |
| 174 | +} |
| 175 | + |
| 176 | +output "secrets_manager_crn" { |
| 177 | + value = module.secrets_manager.secrets_manager_crn |
| 178 | + description = "CRN of the Secrets Manager instance" |
| 179 | +} |
| 180 | + |
| 181 | +output "secrets_manager_region" { |
| 182 | + value = module.secrets_manager.secrets_manager_region |
| 183 | + description = "Region of the Secrets Manager instance" |
| 184 | +} |
| 185 | + |
| 186 | +############################################################################## |
| 187 | +# COS Outputs |
| 188 | +############################################################################## |
| 189 | + |
| 190 | +output "cos_instance_crn" { |
| 191 | + description = "COS instance crn" |
| 192 | + value = module.cos.cos_instance_crn |
| 193 | +} |
| 194 | + |
| 195 | +output "cos_instance_guid" { |
| 196 | + description = "COS instance guid" |
| 197 | + value = module.cos.cos_instance_guid |
| 198 | +} |
| 199 | + |
| 200 | +############################################################################## |
| 201 | +# Cloud Monitoring Outputs |
| 202 | +############################################################################## |
| 203 | + |
| 204 | +output "cloud_monitoring_crn" { |
| 205 | + value = module.cloud_monitoring.crn |
| 206 | + description = "The id of the provisioned IBM Cloud Monitoring instance." |
| 207 | +} |
| 208 | +output "cloud_monitoring_name" { |
| 209 | + value = module.cloud_monitoring.name |
| 210 | + description = "The name of the provisioned IBM Cloud Monitoring instance." |
| 211 | +} |
| 212 | + |
| 213 | +output "cloud_monitoring_guid" { |
| 214 | + value = module.cloud_monitoring.guid |
| 215 | + description = "The guid of the provisioned IBM Cloud Monitoring instance." |
| 216 | +} |
| 217 | + |
| 218 | +output "cloud_monitoring_access_key_name" { |
| 219 | + value = module.cloud_monitoring.access_key_name |
| 220 | + description = "The name of the IBM Cloud Monitoring access key for agents to use" |
| 221 | +} |
| 222 | + |
| 223 | +output "cloud_monitoring_access_key" { |
| 224 | + value = module.cloud_monitoring.access_key |
| 225 | + description = "The IBM Cloud Monitoring access key for agents to use" |
| 226 | + sensitive = true |
| 227 | +} |
| 228 | + |
| 229 | +############################################################################## |
| 230 | +# Cloud Logs Outputs |
| 231 | +############################################################################## |
| 232 | + |
| 233 | +output "cloud_logs_crn" { |
| 234 | + value = module.cloud_logs.crn |
| 235 | + description = "The id of the provisioned IBM Cloud Logs instance." |
| 236 | +} |
| 237 | + |
| 238 | +output "cloud_logs_guid" { |
| 239 | + value = module.cloud_logs.guid |
| 240 | + description = "The guid of the provisioned IBM Cloud Logs instance." |
| 241 | +} |
| 242 | + |
| 243 | +output "cloud_logs_name" { |
| 244 | + value = module.cloud_logs.name |
| 245 | + description = "The name of the provisioned IBM Cloud Logs instance." |
| 246 | +} |
| 247 | + |
| 248 | +output "logs_bucket_crn" { |
| 249 | + description = "Logs Cloud Object Storage bucket CRN" |
| 250 | + value = module.cloud_logs_buckets.buckets[local.data_bucket_name].bucket_crn |
| 251 | +} |
| 252 | + |
| 253 | +output "metrics_bucket_crn" { |
| 254 | + description = "Metrics Cloud Object Storage bucket CRN" |
| 255 | + value = module.cloud_logs_buckets.buckets[local.metrics_bucket_name].bucket_crn |
| 256 | +} |
| 257 | + |
| 258 | +############################################################################## |
| 259 | +# Activity Tracker Event Routing Outputs |
| 260 | +############################################################################## |
| 261 | + |
| 262 | +output "activity_tracker_cos_target_bucket_name" { |
| 263 | + value = module.at_cos_bucket.buckets[local.activity_tracker_cos_target_bucket_name].bucket_name |
| 264 | + description = "he name of the object storage bucket which is set as activity tracker event routing target to collect audit events." |
| 265 | +} |
| 266 | + |
| 267 | +output "activity_tracker_targets" { |
| 268 | + value = module.activity_tracker.activity_tracker_targets |
| 269 | + description = "The map of created Activity Tracker Event Routing targets" |
| 270 | +} |
| 271 | + |
| 272 | +output "activity_tracker_routes" { |
| 273 | + value = module.activity_tracker.activity_tracker_routes |
| 274 | + description = "The map of created Activity Tracker Event Routing routes" |
| 275 | +} |
| 276 | + |
| 277 | +############################################################################## |
| 278 | +# SCC-WP Outputs |
| 279 | +############################################################################## |
| 280 | + |
| 281 | +output "scc_workload_protection_id" { |
| 282 | + description = "SCC Workload Protection instance ID" |
| 283 | + value = module.scc_wp.id |
| 284 | +} |
| 285 | + |
| 286 | +output "scc_workload_protection_crn" { |
| 287 | + description = "SCC Workload Protection instance CRN" |
| 288 | + value = module.scc_wp.crn |
| 289 | +} |
| 290 | + |
| 291 | +output "scc_workload_protection_name" { |
| 292 | + description = "SCC Workload Protection instance name" |
| 293 | + value = module.scc_wp.name |
| 294 | +} |
0 commit comments