Skip to content

Commit

Permalink
extended pqs permissions for the api to publish messages (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslawgabara authored Nov 18, 2024
1 parent 56abb75 commit 904717c
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions dev-aws/kafka-shared-msk/payment-platform/payment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ resource "kafka_topic" "payment_method_deadletter_v1_events" {
}
}

module "payment_query_service" {
source = "../../../modules/tls-app"
produce_topics = [kafka_topic.payment_deadletter_v1_events.name, kafka_topic.payment_v1_events.name, kafka_topic.payment_method_deadletter_v1_events.name]
consume_topics = [kafka_topic.payment_v1_events.name, kafka_topic.payment_method_v1_events.name]
consume_groups = ["payment-platform.payment_query_service"]
cert_common_name = "payment-platform/payment-query-service"
}

# Downstream integrations
# https://github.com/utilitywarehouse/kubernetes-manifests/blob/master/dev-merit/payment-platform/_configs/platform-integration.yaml
resource "kafka_topic" "payment_v1_public_events_pp_test" {
Expand Down Expand Up @@ -163,6 +155,23 @@ module "payment_query_service_downstream" {
cert_common_name = "payment-platform/payment-query-service-downstream"
}

module "payment_query_service" {
source = "../../../modules/tls-app"
produce_topics = [
kafka_topic.payment_deadletter_v1_events.name,
kafka_topic.payment_v1_events.name,
kafka_topic.payment_method_deadletter_v1_events.name,
kafka_topic.payment_v1_public_events_pp_test.name,
kafka_topic.payment_v1_public_events.name,
kafka_topic.payment_method_v1_public_events.name,
# integration topics have to go there
kafka_topic.payment_v1_public_events_cbc_topup_v3.name
]
consume_topics = [kafka_topic.payment_v1_events.name, kafka_topic.payment_method_v1_events.name]
consume_groups = ["payment-platform.payment_query_service"]
cert_common_name = "payment-platform/payment-query-service"
}

module "payment_query_service_downstream_preview" {
source = "../../../modules/tls-app"
consume_topics = [
Expand Down

0 comments on commit 904717c

Please sign in to comment.