-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdirect-debits.tf
93 lines (85 loc) · 2.38 KB
/
direct-debits.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
resource "kafka_topic" "dd_run_events" {
name = "dd-run.events"
replication_factor = 3
partitions = 10
config = {
"retention.bytes" = "-1"
"retention.ms" = "604800000" #7 days
"cleanup.policy" = "delete"
}
}
resource "kafka_topic" "dd_run_reconciliation_events" {
name = "dd-run.reconciliation.events"
replication_factor = 3
partitions = 10
config = {
"max.message.bytes" = "1048576"
"retention.bytes" = "-1"
"retention.ms" = "259200000" #3 days, maybe worth doing it less
"cleanup.policy" = "delete"
}
}
resource "kafka_topic" "invoice_payment_events" {
name = "invoice.payment.events"
replication_factor = 3
partitions = 10
config = {
"retention.bytes" = "-1"
"retention.ms" = "2592000000" #30 days
"cleanup.policy" = "delete"
}
}
resource "kafka_topic" "invoice_payments_reconciliation_errors" {
name = "invoice-payments-reconciliation-errors"
replication_factor = 3
partitions = 10
config = {
"retention.bytes" = "-1"
"cleanup.policy" = "delete"
}
}
resource "kafka_topic" "dd_adjustment_errors" {
name = "dd-adjustment.errors"
replication_factor = 3
partitions = 10
config = {
"retention.ms" = "2592000000"
"retention.bytes" = "-1"
"cleanup.policy" = "delete"
}
}
resource "kafka_topic" "dd_file_upload_results_events" {
name = "dd-file-upload-results.events"
replication_factor = 3
partitions = 10
config = {
"retention.bytes" = "-1"
"retention.ms" = "2592000000"
"cleanup.policy" = "delete"
}
}
resource "kafka_topic" "dd_rejections_file_available_events" {
name = "dd-rejections-file-available-events"
replication_factor = 3
partitions = 10
config = {
"retention.bytes" = "-1"
"retention.ms" = "604800000"
"cleanup.policy" = "delete"
}
}
resource "kafka_topic" "dd_rejections_fabrication_failures" {
name = "dd-rejections-fabrication-failures"
replication_factor = 3
partitions = 10
config = {
"retention.bytes" = "-1"
"retention.ms" = "604800000"
"cleanup.policy" = "delete"
}
}
resource "kafka_topic" "dd_file_available_events" {
name = "dd-file-available-events"
replication_factor = 3
partitions = 1
}