diff --git a/dev-aws/kafka-shared-msk/billing/transactions-auditor-diff-events.tf b/dev-aws/kafka-shared-msk/billing/transactions-auditor-diff-events.tf new file mode 100644 index 00000000..1a713dec --- /dev/null +++ b/dev-aws/kafka-shared-msk/billing/transactions-auditor-diff-events.tf @@ -0,0 +1,29 @@ +resource "kafka_topic" "transactions_auditor_diff_events" { + name = "billing.transactions-auditor-diff.events" + replication_factor = 3 + partitions = 10 + config = { + "compression.type" = "zstd" + # 805 GB + "retention.bytes" = "805306368000" + # 105 MB + "max.message.bytes" = "104857600" + # Use tiered storage + "remote.storage.enable" = "true" + # keep data in hot storage for 2 days + "local.retention.ms" = "172800000" + "retention.ms" = "-1" + "cleanup.policy" = "delete" + } +} + + +module "transactions_auditor_api" { + source = "../../../modules/tls-app" + # consume_topics = [transactions-auditor-events-indexer.name,] + produce_topics = [ + kafka_topic.transactions_auditor_diff_events.name + ] + # consume_groups = ["billing.transactions-auditor-events-indexer"] + cert_common_name = "billing/transactions-auditor-api" +}