Last active
January 23, 2022 08:27
-
-
Save nishadmehendale/e42927a8820a9d325d68e7446c7a5040 to your computer and use it in GitHub Desktop.
Sample Kafka Topic Script With Configuration
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 | |
resource "kafka_topic" "logs" { | |
name = "systemd_logs" | |
replication_factor = 2 | |
partitions = 100 | |
config = { | |
"segment.ms" = "20000" | |
"cleanup.policy" = "compact" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment