From 16b1a777eb27d5e9e761567e33a4141c19b90898 Mon Sep 17 00:00:00 2001 From: sbuliarca Date: Fri, 1 Mar 2024 15:26:25 +0200 Subject: [PATCH] tls-app fix: migrate prod otel (#170) --- prod-aws/kafka-shared/otel/otel.tf | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/prod-aws/kafka-shared/otel/otel.tf b/prod-aws/kafka-shared/otel/otel.tf index e1604487..8179dff8 100644 --- a/prod-aws/kafka-shared/otel/otel.tf +++ b/prod-aws/kafka-shared/otel/otel.tf @@ -20,13 +20,19 @@ resource "kafka_topic" "otlp_spans" { } module "otel_collector" { - source = "../../../modules/tls-app" + source = "../../../modules/tls-app-v2" produce_topics = [kafka_topic.otlp_spans.name] cert_common_name = "otel/collector" } module "tempo_distributor" { - source = "../../../modules/tls-app" - consume_topics = { (kafka_topic.otlp_spans.name) : "processor-tempo" } + source = "../../../modules/tls-app-v2" + consume_topics = [(kafka_topic.otlp_spans.name)] + consume_groups = ["processor-tempo"] cert_common_name = "otel/tempo-distributor" } + +moved { + from = module.tempo_distributor.kafka_acl.group_acl["otel.otlp_spans"] + to = module.tempo_distributor.kafka_acl.group_acl["processor-tempo"] +}