Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions patterns/vsi-extension/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,28 @@ output "vsi_data" {
description = "Details of the VSI including name, id, zone, and primary ipv4 address, VPC Name, and floating IP."
value = module.vsi
}

output "next_steps_text" {
value = "Your Virtual Server Instance is ready."
description = "Next steps text"
}

output "next_step_primary_label" {
value = "Go to Virtual Server Instance"
description = "Primary label"
}

output "next_step_primary_url" {
value = length(module.vsi.ids) > 0 ? "https://cloud.ibm.com/infrastructure/compute/vs/${var.region}~${module.vsi.ids[0]}/overview" : null
description = "Primary URL"
}

output "next_step_secondary_label" {
value = "SSH Connection Guide"
description = "Secondary label"
}

output "next_step_secondary_url" {
value = "https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vsi/blob/main/solutions/quickstart/ssh_connection_guide.md"
description = "Secondary URL"
}
35 changes: 35 additions & 0 deletions patterns/vsi-quickstart/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,38 @@ output "config" {
description = "Output configuration as encoded JSON"
value = module.landing_zone.config
}

output "next_steps_text" {
value = "Your Virtual Server Instances are ready."
description = "Next steps text"
}

output "next_step_primary_label" {
value = "View jump-box instance"
description = "Primary label"
}

output "next_step_primary_url" {
value = "https://cloud.ibm.com/infrastructure/compute/vs/${var.region}~${module.landing_zone.vsi_list[0].id}/overview"
description = "Primary URL"
}

output "next_step_secondary_label" {
value = "View workload-server instance"
description = "Secondary label"
}

output "next_step_secondary_url" {
value = "https://cloud.ibm.com/infrastructure/compute/vs/${var.region}~${module.landing_zone.vsi_list[1].id}/overview"
description = "Secondary URL"
}



# output "next_step_vsi_urls" {
# description = "Map of VSI names to their IBM Cloud console URLs"
# value = {
# for vsi in module.landing_zone.vsi_list :
# vsi.name => "https://cloud.ibm.com/infrastructure/compute/vs/${var.region}~${vsi.id}/overview"
# }
# }
27 changes: 27 additions & 0 deletions patterns/vsi/module/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,30 @@ output "config" {
}

##############################################################################


output "next_steps_text" {
value = "Your Virtual Server Instances are ready."
description = "Next steps text"
}

output "next_step_primary_label" {
value = "Go to Virtual Server Instances"
description = "Primary label"
}

output "next_step_primary_url" {
value = "https://cloud.ibm.com/infrastructure/compute/vs"
description = "Primary URL"
}


output "next_step_secondary_label" {
value = "Expose app to internet"
description = "Secondary label"
}

output "next_step_secondary_url" {
value = "https://cloud.ibm.com/docs/secure-infrastructure-vpc?topic=secure-infrastructure-vpc-access-public-app"
description = "Secondary URL"
}
26 changes: 26 additions & 0 deletions patterns/vsi/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,29 @@ output "config" {
description = "Output configuration as encoded JSON"
value = module.vsi_landing_zone.config
}

output "next_steps_text" {
value = module.vsi_landing_zone.next_steps_text
description = "Next steps text"
}

output "next_step_primary_label" {
value = module.vsi_landing_zone.next_step_primary_label
description = "Primary label"
}

output "next_step_primary_url" {
value = module.vsi_landing_zone.next_step_primary_url
description = "Primary URL"
}


output "next_step_secondary_label" {
value = module.vsi_landing_zone.next_step_secondary_label
description = "Secondary label"
}

output "next_step_secondary_url" {
value = module.vsi_landing_zone.next_step_secondary_url
description = "Secondary URL"
}