Skip to content

Commit 76f058d

Browse files
committed
[CPQ-5] - Add bundle tier topic config on customer prop
1 parent 60ec9b9 commit 76f058d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
resource "kafka_topic" "bundeltier_events_v1" {
2+
name = "customer-proposition.public.bundeltier.events.v1"
3+
4+
replication_factor = 3
5+
partitions = 15
6+
7+
config = {
8+
9+
"retention.bytes" = "-1" # keep on each partition unlimited data
10+
11+
# allow for a batch of records maximum 1MiB
12+
"max.message.bytes" = "1048576"
13+
"compression.type" = "zstd"
14+
"cleanup.policy" = "compact"
15+
}
16+
}
17+
18+
module "bundeltier_event_forwarder" {
19+
source = "../../../modules/tls-app"
20+
produce_topics = [kafka_topic.bundeltier_events_v1.name]
21+
consume_groups = ["customer-proposition.bundletier-public-event-forwarder"]
22+
cert_common_name = "customer-proposition/bundletier-public-event-forwarder"
23+
}
24+
25+
module "es_indexer_bundletier_events_v1" {
26+
source = "../../../modules/tls-app"
27+
consume_groups = ["customer-proposition.es-indexer-bundeltier.events.v1"]
28+
consume_topics = [kafka_topic.bundeltier_events_v1.name]
29+
cert_common_name = "customer-proposition/es-indexer-bundeltier-events-v1"
30+
}

0 commit comments

Comments
 (0)