Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
srikanth520 opened this issue Mar 26, 2024 · 2 comments

Comments

@srikanth520
Copy link

srikanth520 commented Mar 26, 2024

@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:

EOF
EOF
EOF

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

@erichulburd
Copy link

I had the same issue when trying to create topic using AWS IAM authentication. See the README and/or this comment for the solution in my case: #414 (comment)

@sappusaketh
Copy link
Contributor

looks like you are missing tls_enabled = true
read me has example for how to connect with TLS enabled clusters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants