From 34499c5c0ab96362c0721a9f9df8fc2cabea2ca7 Mon Sep 17 00:00:00 2001 From: Daniel Copaciu Date: Thu, 29 Feb 2024 11:15:55 +0200 Subject: [PATCH] Add compacted topic for account balance v2 --- prod-aws/finance/account-balance.tf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/prod-aws/finance/account-balance.tf b/prod-aws/finance/account-balance.tf index d9c5d955..3f98da5f 100644 --- a/prod-aws/finance/account-balance.tf +++ b/prod-aws/finance/account-balance.tf @@ -101,3 +101,14 @@ resource "kafka_topic" "projected-account-balance-change-v1-events-complete" { "retention.ms" = "-1" } } + +resource "kafka_topic" "account-balance-change-v2-events-compacted" { + name = "account-balance-change-v2-compacted.events" + partitions = 10 + replication_factor = 3 + config = { + "cleanup.policy" = "compact" + "max.message.bytes" = "104857600" + "max.compaction.lag.ms" = "1728000000" + } +}