Files
kafka/cluster/terraform/main.tf
2024-06-22 16:04:18 +02:00

20 lines
366 B
HCL

terraform {
required_providers {
kafka = {
source = "Mongey/kafka"
version = "0.7.1"
}
}
}
provider "kafka" {
bootstrap_servers = ["localhost:19092", "localhost:29092", "localhost:39092"]
tls_enabled = false
}
resource "kafka_topic" "logs" {
name = "flowdata"
replication_factor = 3
partitions = 10
}