Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions solutions/fully-configurable/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
29 changes: 29 additions & 0 deletions solutions/fully-configurable/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

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