generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoutputs.tf
114 lines (91 loc) · 4.19 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
##############################################################################
# Outputs
##############################################################################
# Common
output "region" {
description = "Region that instance(s) are provisioned to."
value = var.region
}
##############################################################################
# IBM Cloud Monitoring
output "cloud_monitoring_crn" {
value = length(module.cloud_monitoring) > 0 ? module.cloud_monitoring[0].crn : null
description = "The id of the provisioned IBM cloud monitoring instance."
}
output "cloud_monitoring_guid" {
value = length(module.cloud_monitoring) > 0 ? module.cloud_monitoring[0].guid : null
description = "The guid of the provisioned IBM cloud monitoring instance."
}
output "cloud_monitoring_name" {
value = length(module.cloud_monitoring) > 0 ? module.cloud_monitoring[0].name : null
description = "The name of the provisioned IBM cloud monitoring instance."
}
output "cloud_monitoring_resource_group_id" {
value = length(module.cloud_monitoring) > 0 ? module.cloud_monitoring[0].resource_group_id : null
description = "The resource group where IBM cloud monitoring monitor instance resides"
}
output "cloud_monitoring_access_key" {
value = length(module.cloud_monitoring) > 0 ? module.cloud_monitoring[0].access_key : null
description = "IBM cloud monitoring access key for agents to use"
sensitive = true
}
output "cloud_monitoring_manager_key_name" {
value = length(module.cloud_monitoring) > 0 ? module.cloud_monitoring[0].manager_key_name : null
description = "The IBM cloud monitoring manager key name"
}
########################################################################
# Activity Tracker Event Routing
#########################################################################
output "activity_tracker_targets" {
value = module.activity_tracker.activity_tracker_targets
description = "The map of created targets"
}
output "activity_tracker_routes" {
value = module.activity_tracker.activity_tracker_routes
description = "The map of created routes"
}
##############################################################################
# IBM Cloud Logs
output "cloud_logs_crn" {
value = length(module.cloud_logs) > 0 ? module.cloud_logs[0].crn : null
description = "The id of the provisioned Cloud Logs instance."
}
output "cloud_logs_guid" {
value = length(module.cloud_logs) > 0 ? module.cloud_logs[0].guid : null
description = "The guid of the provisioned Cloud Logs instance."
}
output "cloud_logs_name" {
value = length(module.cloud_logs) > 0 ? module.cloud_logs[0].name : null
description = "The name of the provisioned Cloud Logs instance."
}
output "cloud_logs_resource_group_id" {
value = length(module.cloud_logs) > 0 ? module.cloud_logs[0].resource_group_id : null
description = "The resource group where Cloud Logs instance resides."
}
output "cloud_logs_ingress_endpoint" {
value = length(module.cloud_logs) > 0 ? module.cloud_logs[0].ingress_endpoint : null
description = "The public ingress endpoint of the provisioned Cloud Logs instance."
}
output "cloud_logs_ingress_private_endpoint" {
value = length(module.cloud_logs) > 0 ? module.cloud_logs[0].ingress_private_endpoint : null
description = "The private ingress endpoint of the provisioned Cloud Logs instance."
}
output "logs_policies_details" {
value = length(module.cloud_logs) > 0 ? module.cloud_logs[0].logs_policies_details : null
description = "The details of the Cloud logs policies created."
}
########################################################################
# Metrics Routing
#########################################################################
output "metrics_router_targets" {
value = module.metric_routing.metrics_router_targets
description = "The created metrics routing targets."
}
output "metrics_router_settings" {
value = module.metric_routing.metrics_router_settings
description = "The global metrics routing settings."
}
output "metrics_router_routes" {
value = module.metric_routing.metrics_router_routes
description = "The created metrics routing routes."
}