Created
January 23, 2022 08:21
-
-
Save nishadmehendale/3cc5975e9b89efed136f7615eb40f8d6 to your computer and use it in GitHub Desktop.
Existing Kafka Topic Creation Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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