Mongey / terraform-provider-kafka

Terraform provider for managing Apache Kafka Topics + ACLs
MIT License
505 stars 126 forks source link

Version 0.7.0 and 0.6.0 not working for kafka TLS brokers to create topics #396

Closed srikanth520 closed 3 months ago

srikanth520 commented 3 months ago

@sappusaketh @Mongey

Below code is working for sasl/scram enabled clusters. But for TLS clusters getting error

Error: kafka: client has run out of available brokers to talk to: 3 errors occurred:

provider "kafka" { bootstrap_servers = var.bootstrap_brokers sasl_username = var.scram_enabled ? jsondecode(one(data.aws_secretsmanager_secret_version.msk_key_version[].secret_string))["username"] : null sasl_password = var.scram_enabled ? jsondecode(one(data.aws_secretsmanager_secret_version.msk_key_version[].secret_string))["password"] : null sasl_mechanism = var.scram_enabled ? var.sasl_mechanism : null }

terraform { required_version = "~> 1.0.11"

required_providers { kafka = { source = "Mongey/kafka" version = "0.5.4" } aws = { source = "hashicorp/aws" version = "~> 5.26" } } }

with 0.5.4 version able to create to topics for TLS enabled clusters