Mongey / terraform-provider-kafka

Terraform provider for managing Apache Kafka Topics + ACLs
MIT License
520 stars 132 forks source link

Kafka Compatibility Query #411

Closed th3cod3r closed 7 months ago

th3cod3r commented 7 months ago

Hi @Mongey ,

Is this provider is compatible with the kafka which is running in the k8s cluster?

Mongey commented 7 months ago

Yes

th3cod3r commented 7 months ago

Hey @Mongey,

I was getting error with my tf file that Error: kafka: client has run out of available brokers to talk to: EOF

Here is tf file

terraform { required_providers { kafka = { source = "Mongey/kafka" version = "0.7.1" } } }

provider "kafka" { bootstrap_servers = ["192.168.24.15:9094"] }

resource "kafka_topic" "logs" { name = "a" replication_factor = 1 partitions = 1 }

resource "kafka_quota" "quota" { entity_name = "a" entity_type = "user" }

resource "kafka_acl" "test" { resource_name = "a" resource_type = "Topic" acl_principal = "User:jamesontest2" acl_host = "192.168.24.15" acl_operation = "All" acl_permission_type = "Allow" }

Requirement:

The kafka is a shared kafka and I just only want to connect in it with a specific tenant id as i have to separate the kafka database with the tenant id (When a another server will connect then i have some producer that will auto-insert into it with the particular tenant id which i defined). And have to apply some acl for security as well.