@@ -2,11 +2,11 @@ resource "kafka_topic" "iam_cerbos_audit_v1" {
2
2
name = " auth.iam-cerbos-audit-v1"
3
3
replication_factor = 3
4
4
partitions = 10
5
- config = {
5
+ config = {
6
6
# retain 100MB on each partition
7
- " retention.bytes" = " 104857600"
7
+ " retention.bytes" = " 104857600"
8
8
# keep data for 2 days
9
- " retention.ms" = " 172800000"
9
+ " retention.ms" = " 172800000"
10
10
# allow max 1 MB for a message
11
11
" max.message.bytes" = " 1048576"
12
12
" compression.type" = " zstd"
@@ -30,11 +30,11 @@ resource "kafka_topic" "iam_credentials_v1" {
30
30
name = " auth-customer.iam-credentials-v1"
31
31
replication_factor = 3
32
32
partitions = 10
33
- config = {
33
+ config = {
34
34
# retain 100MB on each partition
35
- " retention.bytes" = " 104857600"
35
+ " retention.bytes" = " 104857600"
36
36
# keep data for 7 days
37
- " retention.ms" = " 604800000"
37
+ " retention.ms" = " 604800000"
38
38
# allow max 1 MB for a message
39
39
" max.message.bytes" = " 1048576"
40
40
" compression.type" = " zstd"
@@ -64,11 +64,11 @@ resource "kafka_topic" "iam_dpd_v1" {
64
64
name = " auth-customer.iam-dpd-v1"
65
65
replication_factor = 3
66
66
partitions = 1
67
- config = {
67
+ config = {
68
68
# retain 100MB on each partition
69
- " retention.bytes" = " 104857600"
69
+ " retention.bytes" = " 104857600"
70
70
# keep data for 7 days
71
- " retention.ms" = " 604800000"
71
+ " retention.ms" = " 604800000"
72
72
# allow max 1 MB for a message
73
73
" max.message.bytes" = " 1048576"
74
74
" compression.type" = " zstd"
@@ -105,12 +105,12 @@ resource "kafka_topic" "iam_identitydb_v1" {
105
105
name = " auth.iam-identitydb-v1"
106
106
replication_factor = 3
107
107
# MUST be 1 partition as identitydb assumes this to be true
108
- partitions = 1
109
- config = {
108
+ partitions = 1
109
+ config = {
110
110
# retain 100MB on each partition
111
- " retention.bytes" = " 104857600"
111
+ " retention.bytes" = " 104857600"
112
112
# keep data for 30 days
113
- " retention.ms" = " 2592000000"
113
+ " retention.ms" = " 2592000000"
114
114
# allow max 5 MB for a message
115
115
" max.message.bytes" = " 5242880"
116
116
" compression.type" = " zstd"
0 commit comments