Skip to content

Commit 246727d

Browse files
authored
fix: fixed the kafka_brokers_sasl output so it doesn't depends on topic creation (#323)
1 parent 9586187 commit 246727d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ Brewfile.lock.json
5454

5555
# Visual Studio Code
5656
.vscode/
57+
58+
tests/vendor

outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ output "guid" {
1919

2020
output "kafka_brokers_sasl" {
2121
description = "(Array of Strings) Kafka brokers use for interacting with Kafka native API"
22-
value = length(ibm_event_streams_topic.es_topic) > 0 ? ibm_event_streams_topic.es_topic[0].kafka_brokers_sasl : null
22+
value = lookup(ibm_resource_instance.es_instance.extensions, "kafka_brokers_sasl", null)
2323
}
2424

2525
output "kafka_http_url" {

0 commit comments

Comments
 (0)