Skip to content

Commit

Permalink
feat: added new outputs to the secure-cross-regional-bucket and `se…
Browse files Browse the repository at this point in the history
…cure-regional-bucket` DA solutions: `s3_endpoint_direct`, `s3_endpoint_private`, `bucket_name`, `cos_instance_id`s (#656)
  • Loading branch information
huayuenh authored Jul 16, 2024
1 parent 3cec7c5 commit 2e3c40f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions solutions/secure-cross-regional-bucket/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,23 @@ output "buckets" {
description = "List of buckets created"
value = module.cos.buckets
}

output "s3_endpoint_direct" {
description = "The s3 direct endpoint of the created bucket."
value = try(module.cos.buckets[var.bucket_name].s3_endpoint_direct, null)
}

output "s3_endpoint_private" {
description = "The s3 private endpoint of the created bucket."
value = try(module.cos.buckets[var.bucket_name].s3_endpoint_private, null)
}

output "bucket_name" {
description = "The name of the bucket that was created. Includes the optional suffix if enabled."
value = try(module.cos.buckets[var.bucket_name].bucket_name, null)
}

output "cos_instance_id" {
description = "The CRN of the COS instance containing the created bucket."
value = var.existing_cos_instance_id
}
20 changes: 20 additions & 0 deletions solutions/secure-regional-bucket/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,23 @@ output "buckets" {
description = "List of buckets created"
value = module.cos.buckets
}

output "s3_endpoint_direct" {
description = "The s3 direct endpoint of the created bucket."
value = try(module.cos.buckets[var.bucket_name].s3_endpoint_direct, null)
}

output "s3_endpoint_private" {
description = "The s3 private endpoint of the created bucket."
value = try(module.cos.buckets[var.bucket_name].s3_endpoint_private, null)
}

output "bucket_name" {
description = "The name of the bucket that was created. Includes the optional suffix if enabled."
value = try(module.cos.buckets[var.bucket_name].bucket_name, null)
}

output "cos_instance_id" {
description = "The CRN of the COS instance containing the created bucket."
value = var.existing_cos_instance_id
}

0 comments on commit 2e3c40f

Please sign in to comment.