diff --git a/solutions/fully-configurable/main.tf b/solutions/fully-configurable/main.tf index 554dd3f..af59433 100644 --- a/solutions/fully-configurable/main.tf +++ b/solutions/fully-configurable/main.tf @@ -14,6 +14,7 @@ locals { cluster_config_endpoint_type = var.cluster_config_endpoint_type is_vpc_cluster = var.is_vpc_cluster cloud_logs_instance_id = split(".", var.cloud_logs_ingress_endpoint)[0] + region = split(".", var.cloud_logs_ingress_endpoint)[index(split(".", var.cloud_logs_ingress_endpoint), "logs") - 1] } module "trusted_profile" { diff --git a/solutions/fully-configurable/outputs.tf b/solutions/fully-configurable/outputs.tf index 586e7dd..741d904 100644 --- a/solutions/fully-configurable/outputs.tf +++ b/solutions/fully-configurable/outputs.tf @@ -3,4 +3,33 @@ ############################################################################## +############################################################################## +# Cloud automation for Logs Agent- Next Steps URLs outputs +############################################################################## + +output "next_steps_text" { + value = "Your logs agent is ready to send logs to the instance." + description = "Next steps text" +} + +output "next_step_primary_label" { + value = "Go to Cloud Logs dashboard" + description = "Primary label" +} + +output "next_step_primary_url" { + value = "https://dashboard.${local.region}.logs.cloud.ibm.com/${local.cloud_logs_instance_id}/#/dashboard" + description = "Primary URL" +} + +output "next_step_secondary_label" { + value = "About the logging agent" + description = "Secondary label" +} + +output "next_step_secondary_url" { + value = "https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-agent-about" + description = "Secondary URL" +} + ##############################################################################