File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
prod-aws/kafka-shared-msk/quoting-platform Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ # Topics
2+ resource "kafka_topic" "basket_v1" {
3+ name = " quoting-platform.basket.events.v1"
4+ replication_factor = 3
5+ partitions = 15
6+
7+ # infinte retention
8+ config = {
9+ " remote.storage.enable" = " true"
10+ " retention.bytes" = " -1" # keep on each partition unlimited data
11+ # tflint-ignore: msk_topic_no_infinite_retention, # infinite retention because ...
12+ " retention.ms" = " -1" # keep data forever
13+ # keep data in primary storage for 1 hour
14+ " local.retention.ms" = " 3600000"
15+ # allow for a batch of records maximum 1MiB
16+ " max.message.bytes" = " 1048576"
17+ " compression.type" = " zstd"
18+ " cleanup.policy" = " delete"
19+ }
20+ }
21+
22+ # ACLs
23+ module "basket_service" {
24+ source = " ../../../modules/tls-app"
25+ produce_topics = [
26+ kafka_topic . basket_v1 . name ,
27+ ]
28+ cert_common_name = " quoting-platform/basket-service"
29+ }
You can’t perform that action at this time.
0 commit comments