Skip to content

Commit

Permalink
add missing dsar producers and consumers (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvaro-marting authored Nov 14, 2024
1 parent 16e4437 commit 202844a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions dev-aws/kafka-shared-msk/contact-channels/contact-channels.tf
Original file line number Diff line number Diff line change
Expand Up @@ -388,3 +388,26 @@ module "dsar_request_consumer" {
consume_topics = [kafka_topic.dsar.name]
consume_groups = ["contact-channels.dsar-request-consumer"]
}

# Produce to contact-channels.dsar-jobs and conversations
module "dsar_job_request_producer" {
source = "../../../modules/tls-app"
cert_common_name = "contact-channels/dsar-job-runner"
produce_topics = [kafka_topic.dsar_job.name, kafka_topic.dsar_conversation.name]
}

# Consume from contact-channels.dsar-conversations
module "dsar_conversations_retriever" {
source = "../../../modules/tls-app"
cert_common_name = "contact-channels/dsar-conversations-retriever"
consume_topics = [kafka_topic.dsar_conversation.name]
consume_groups = ["contact-channels.dsar-conversations-retriever"]
}

# Consume from contact-channels.dsar-jobs
module "dsar_job_fulfiller" {
source = "../../../modules/tls-app"
cert_common_name = "contact-channels/dsar-job-fulfiller"
consume_topics = [kafka_topic.dsar_job.name]
consume_groups = ["contact-channels.dsar-job-fulfiller"]
}
23 changes: 23 additions & 0 deletions prod-aws/kafka-shared-msk/contact-channels/contact-channels.tf
Original file line number Diff line number Diff line change
Expand Up @@ -388,3 +388,26 @@ module "dsar_request_consumer" {
consume_topics = [kafka_topic.dsar.name]
consume_groups = ["contact-channels.dsar-request-consumer"]
}

# Produce to contact-channels.dsar-jobs and conversations
module "dsar_job_request_producer" {
source = "../../../modules/tls-app"
cert_common_name = "contact-channels/dsar-job-runner"
produce_topics = [kafka_topic.dsar_job.name, kafka_topic.dsar_conversation.name]
}

# Consume from contact-channels.dsar-conversations
module "dsar_conversations_retriever" {
source = "../../../modules/tls-app"
cert_common_name = "contact-channels/dsar-conversations-retriever"
consume_topics = [kafka_topic.dsar_conversation.name]
consume_groups = ["contact-channels.dsar-conversations-retriever"]
}

# Consume from contact-channels.dsar-jobs
module "dsar_job_fulfiller" {
source = "../../../modules/tls-app"
cert_common_name = "contact-channels/dsar-job-fulfiller"
consume_topics = [kafka_topic.dsar_job.name]
consume_groups = ["contact-channels.dsar-job-fulfiller"]
}

0 comments on commit 202844a

Please sign in to comment.