Skip to content

Instantly share code, notes, and snippets.

@nishadmehendale
Created January 23, 2022 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nishadmehendale/3cc5975e9b89efed136f7615eb40f8d6 to your computer and use it in GitHub Desktop.
Save nishadmehendale/3cc5975e9b89efed136f7615eb40f8d6 to your computer and use it in GitHub Desktop.
Existing Kafka Topic Creation Script
# Referred from https://registry.terraform.io/providers/Mongey/kafka/latest/docs/resources/topic#argument-reference
provider "kafka" {
bootstrap_servers = ["localhost:9092"]
}
resource "kafka_topic" "logs" {
name = "systemd_logs"
replication_factor = 2
partitions = 3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment