Skip to content

Commit 17ab156

Browse files
feat: Added "Next steps" to the DA (#989)
1 parent 0a00038 commit 17ab156

File tree

6 files changed

+155
-1
lines changed

6 files changed

+155
-1
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ jobs:
1010
call-terraform-ci-pipeline:
1111
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/common-terraform-module-ci-v2.yml@v1.24.0
1212
secrets: inherit
13-

solutions/cross-regional-bucket/fully-configurable/outputs.tf

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,34 @@ output "cos_instance_guid" {
3030
description = "The guid of the COS instance containing the created bucket."
3131
value = local.cos_instance_guid
3232
}
33+
34+
##############################################################################
35+
# CROSS REGIONAL BUCKET Next Steps URLs outputs
36+
##############################################################################
37+
38+
output "next_steps_text" {
39+
value = "Your cross-regional bucket is created."
40+
description = "Next steps text"
41+
}
42+
43+
output "next_step_primary_label" {
44+
value = "Go to your cross-regional bucket"
45+
description = "Primary label"
46+
}
47+
48+
output "next_step_primary_url" {
49+
value = "https://cloud.ibm.com/objectstorage/${urlencode(var.existing_cos_instance_crn)}?&bucket=${module.cos.buckets[local.bucket_config[0].bucket_name].bucket_name}&bucketRegion=${local.bucket_config[0].cross_region_location}&endpoint=s3.direct.${local.bucket_config[0].cross_region_location}.cloud-object-storage.appdomain.cloud&paneId=bucket_overview"
50+
description = "Primary URL"
51+
}
52+
53+
output "next_step_secondary_label" {
54+
value = "Learn how to add some objects to your bucket"
55+
description = "Secondary label"
56+
}
57+
58+
output "next_step_secondary_url" {
59+
value = "https://cloud.ibm.com/docs/cloud-object-storage"
60+
description = "Secondary URL"
61+
}
62+
63+
##############################################################################

solutions/cross-regional-bucket/security-enforced/outputs.tf

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,34 @@ output "cos_instance_crn" {
2525
description = "The CRN of the COS instance containing the created bucket."
2626
value = var.existing_cos_instance_crn
2727
}
28+
29+
##############################################################################
30+
# CROSS REGIONAL BUCKET Next Steps URLs outputs
31+
##############################################################################
32+
33+
output "next_steps_text" {
34+
value = module.cross_regional_bucket.next_steps_text
35+
description = "Next steps text"
36+
}
37+
38+
output "next_step_primary_label" {
39+
value = module.cross_regional_bucket.next_step_primary_label
40+
description = "Primary label"
41+
}
42+
43+
output "next_step_primary_url" {
44+
value = module.cross_regional_bucket.next_step_primary_url
45+
description = "Primary URL"
46+
}
47+
48+
output "next_step_secondary_label" {
49+
value = module.cross_regional_bucket.next_step_secondary_label
50+
description = "Secondary label"
51+
}
52+
53+
output "next_step_secondary_url" {
54+
value = module.cross_regional_bucket.next_step_secondary_url
55+
description = "Secondary URL"
56+
}
57+
58+
##############################################################################

solutions/instance/outputs.tf

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,34 @@ output "service_credential_secret_groups" {
4747
description = "Service credential secret groups"
4848
value = length(local.service_credential_secrets) > 0 ? module.secrets_manager_service_credentials[0].secret_groups : null
4949
}
50+
51+
##############################################################################
52+
# CLOUD OBJECT STORAGE Next Steps URLs outputs
53+
##############################################################################
54+
55+
output "next_steps_text" {
56+
value = "Your Cloud Object Storage instance is created."
57+
description = "Next steps text"
58+
}
59+
60+
output "next_step_primary_label" {
61+
value = "Go to Cloud Object Storage instance"
62+
description = "Primary label"
63+
}
64+
65+
output "next_step_primary_url" {
66+
value = "https://cloud.ibm.com/objectstorage/${urlencode(module.cos.cos_instance_crn)}?paneId=manage"
67+
description = "Primary URL"
68+
}
69+
70+
output "next_step_secondary_label" {
71+
value = "Learn more about Cloud Object Storage"
72+
description = "Secondary label"
73+
}
74+
75+
output "next_step_secondary_url" {
76+
value = "https://cloud.ibm.com/docs/cloud-object-storage"
77+
description = "Secondary URL"
78+
}
79+
80+
##############################################################################

solutions/regional-bucket/fully-configurable/outputs.tf

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,34 @@ output "cos_instance_guid" {
3030
description = "The guid of the COS instance containing the created bucket."
3131
value = local.cos_instance_guid
3232
}
33+
34+
##############################################################################
35+
# REGIONAL BUCKET Next Steps URLs outputs
36+
##############################################################################
37+
38+
output "next_steps_text" {
39+
value = "Your regional bucket is created."
40+
description = "Next steps text"
41+
}
42+
43+
output "next_step_primary_label" {
44+
value = "Go to your regional bucket"
45+
description = "Primary label"
46+
}
47+
48+
output "next_step_primary_url" {
49+
value = "https://cloud.ibm.com/objectstorage/${urlencode(var.existing_cos_instance_crn)}?&bucket=${module.cos.buckets[local.bucket_config[0].bucket_name].bucket_name}&bucketRegion=${local.bucket_config[0].region_location}&endpoint=s3.direct.${local.bucket_config[0].region_location}.cloud-object-storage.appdomain.cloud&paneId=bucket_overview"
50+
description = "Primary URL"
51+
}
52+
53+
output "next_step_secondary_label" {
54+
value = "Learn how to add some objects to your bucket"
55+
description = "Secondary label"
56+
}
57+
58+
output "next_step_secondary_url" {
59+
value = "https://cloud.ibm.com/docs/cloud-object-storage"
60+
description = "Secondary URL"
61+
}
62+
63+
##############################################################################

solutions/regional-bucket/security-enforced/outputs.tf

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,34 @@ output "cos_instance_crn" {
2525
description = "The CRN of the COS instance containing the created bucket."
2626
value = var.existing_cos_instance_crn
2727
}
28+
29+
##############################################################################
30+
# REGIONAL BUCKET Next Steps URLs outputs
31+
##############################################################################
32+
33+
output "next_steps_text" {
34+
value = module.regional_bucket.next_steps_text
35+
description = "Next steps text"
36+
}
37+
38+
output "next_step_primary_label" {
39+
value = module.regional_bucket.next_step_primary_label
40+
description = "Primary label"
41+
}
42+
43+
output "next_step_primary_url" {
44+
value = module.regional_bucket.next_step_primary_url
45+
description = "Primary URL"
46+
}
47+
48+
output "next_step_secondary_label" {
49+
value = module.regional_bucket.next_step_secondary_label
50+
description = "Secondary label"
51+
}
52+
53+
output "next_step_secondary_url" {
54+
value = module.regional_bucket.next_step_secondary_url
55+
description = "Secondary URL"
56+
}
57+
58+
##############################################################################

0 commit comments

Comments
 (0)