Skip to content

Commit bc9fdbd

Browse files
feat: Added "Next steps" to the DA (#209)
1 parent 407cce2 commit bc9fdbd

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

solutions/fully-configurable/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ locals {
1414
cluster_config_endpoint_type = var.cluster_config_endpoint_type
1515
is_vpc_cluster = var.is_vpc_cluster
1616
cloud_logs_instance_id = split(".", var.cloud_logs_ingress_endpoint)[0]
17+
region = split(".", var.cloud_logs_ingress_endpoint)[index(split(".", var.cloud_logs_ingress_endpoint), "logs") - 1]
1718
}
1819

1920
module "trusted_profile" {

solutions/fully-configurable/outputs.tf

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,33 @@
33
##############################################################################
44

55

6+
##############################################################################
7+
# Cloud automation for Logs Agent- Next Steps URLs outputs
8+
##############################################################################
9+
10+
output "next_steps_text" {
11+
value = "Your logs agent is ready to send logs to the instance."
12+
description = "Next steps text"
13+
}
14+
15+
output "next_step_primary_label" {
16+
value = "Go to Cloud Logs dashboard"
17+
description = "Primary label"
18+
}
19+
20+
output "next_step_primary_url" {
21+
value = "https://dashboard.${local.region}.logs.cloud.ibm.com/${local.cloud_logs_instance_id}/#/dashboard"
22+
description = "Primary URL"
23+
}
24+
25+
output "next_step_secondary_label" {
26+
value = "About the logging agent"
27+
description = "Secondary label"
28+
}
29+
30+
output "next_step_secondary_url" {
31+
value = "https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-agent-about"
32+
description = "Secondary URL"
33+
}
34+
635
##############################################################################

0 commit comments

Comments
 (0)