Skip to content

Commit

Permalink
remove SASL_SSL prefix from confluent endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
tillkuhn committed Nov 13, 2023
1 parent 084bc12 commit d89b8b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terraform/modules/confluent/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ output "cluster_rest_endpoint" {

output "cluster_boostrap_endpoint" {
# e.g. abc-123.eu-central-1.aws.confluent.cloud:9092
value = confluent_kafka_cluster.default.bootstrap_endpoint
# SASL_SSL:// prefix needs to be removed, kafka-go and string want plain hostname and port
value = trimprefix(confluent_kafka_cluster.default.bootstrap_endpoint, "SASL_SSL://")
}

output "cluster_id" {
Expand Down

0 comments on commit d89b8b8

Please sign in to comment.