generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
outputs.tf
58 lines (48 loc) · 1.85 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
##############################################################################
# Outputs
##############################################################################
output "id" {
description = "Event Streams instance id"
value = ibm_resource_instance.es_instance.id
}
output "crn" {
description = "Event Streams crn"
value = ibm_resource_instance.es_instance.crn
}
output "guid" {
description = "Event Streams guid"
value = ibm_resource_instance.es_instance.guid
}
output "kafka_brokers_sasl" {
description = "(Array of Strings) Kafka brokers use for interacting with Kafka native API"
value = [
for i in range(tonumber(ibm_resource_instance.es_instance.extensions["kafka_brokers_sasl.#"])) :
ibm_resource_instance.es_instance.extensions["kafka_brokers_sasl.${i}"]
]
}
output "kafka_http_url" {
description = "The API endpoint to interact with Event Streams REST API"
value = ibm_resource_instance.es_instance.extensions.kafka_http_url
}
output "kafka_broker_version" {
description = "The Kafka version"
value = ibm_resource_instance.es_instance.extensions.kafka_broker_version
}
output "service_credentials_json" {
description = "The service credentials JSON map."
value = local.service_credentials_json
sensitive = true
}
output "service_credentials_object" {
description = "The service credentials object."
value = local.service_credentials_object
sensitive = true
}
output "mirroring_config_id" {
description = "The ID of the mirroring config in CRN format"
value = var.mirroring != null ? ibm_event_streams_mirroring_config.es_mirroring_config[0].id : null
}
output "mirroring_topic_patterns" {
description = "Mirroring topic patterns"
value = var.mirroring != null ? ibm_event_streams_mirroring_config.es_mirroring_config[0].mirroring_topic_patterns : null
}