Skip to content

Commit daac49c

Browse files
authored
add qp basket topic - prod (#1039)
1 parent 01e4f91 commit daac49c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
}

0 commit comments

Comments
 (0)