Skip to content

Commit 7b9fb29

Browse files
authored
Add iam dpd topic and clients to prod (#140)
1 parent 3326ebb commit 7b9fb29

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

prod-aws/kafka-shared/iam.tf

+41
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,47 @@ module "iam_customer_auth_provider" {
6060
cert_common_name = "clubhouse/auth-provider"
6161
}
6262

63+
resource "kafka_topic" "iam_dpd_v1" {
64+
name = "auth-customer.iam-dpd-v1"
65+
replication_factor = 3
66+
partitions = 1
67+
config = {
68+
# retain 100MB on each partition
69+
"retention.bytes" = "104857600"
70+
# keep data for 7 days
71+
"retention.ms" = "604800000"
72+
# allow max 1 MB for a message
73+
"max.message.bytes" = "1048576"
74+
"compression.type" = "zstd"
75+
"cleanup.policy" = "delete"
76+
}
77+
}
78+
79+
module "iam_dpd_mapper" {
80+
source = "../../modules/tls-app"
81+
produce_topics = [kafka_topic.iam_dpd_v1.name]
82+
consume_topics = { (kafka_topic.iam_credentials_v1.name) : "iam.dpd-mapper" }
83+
cert_common_name = "auth-customer/dpd-mapper"
84+
}
85+
86+
module "iam_dpd_di_kafka_source_customer_login_succeeded" {
87+
source = "../../modules/tls-app"
88+
consume_topics = { (kafka_topic.iam_dpd_v1.name) : "iam.di-kafka-source-customer-login-succeeded" }
89+
cert_common_name = "auth-customer/di-kafka-source-customer-login-succeeded"
90+
}
91+
92+
module "iam_dpd_di_kafka_source_customer_login_failed" {
93+
source = "../../modules/tls-app"
94+
consume_topics = { (kafka_topic.iam_dpd_v1.name) : "iam.di-kafka-source-customer-login-failed" }
95+
cert_common_name = "auth-customer/di-kafka-source-customer-login-failed"
96+
}
97+
98+
module "iam_dpd_di_kafka_source_customer_password_reset_failed" {
99+
source = "../../modules/tls-app"
100+
consume_topics = { (kafka_topic.iam_dpd_v1.name) : "iam.di-kafka-source-customer-password-reset-failed" }
101+
cert_common_name = "auth-customer/di-kafka-source-customer-password-reset-failed"
102+
}
103+
63104
resource "kafka_topic" "iam_identitydb_v1" {
64105
name = "auth.iam-identitydb-v1"
65106
replication_factor = 3

0 commit comments

Comments
 (0)