Skip to content

Instantly share code, notes, and snippets.

@nishadmehendale
Last active January 23, 2022 08:27
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/e42927a8820a9d325d68e7446c7a5040 to your computer and use it in GitHub Desktop.
Save nishadmehendale/e42927a8820a9d325d68e7446c7a5040 to your computer and use it in GitHub Desktop.
Sample Kafka Topic Script With Configuration
# 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