From d9abe5a94638e52633806c7e7641aa09fc008103 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 9 Oct 2024 10:40:04 +0200 Subject: [PATCH] chore: pin otel image version (#189) * bump otel collector resources * pin and trivialize otel * pin and trivialize otel * descale otel resources * make otel essential again * fmt HCL --------- Co-authored-by: daniel --- terraform/ecs/cluster.tf | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/terraform/ecs/cluster.tf b/terraform/ecs/cluster.tf index 9d741c8..dad48e0 100644 --- a/terraform/ecs/cluster.tf +++ b/terraform/ecs/cluster.tf @@ -6,9 +6,10 @@ locals { task_cpu = module.this.stage == "prod" ? var.task_cpu : 256 task_memory = module.this.stage == "prod" ? var.task_memory : 512 - otel_port = var.port + 1 - otel_cpu = 128 - otel_memory = 128 + otel_image_tag = "v0.3.0" + otel_port = var.port + 1 + otel_cpu = 128 + otel_memory = 128 } module "ecs_cpu_mem" { @@ -114,7 +115,7 @@ resource "aws_ecs_task_definition" "app_task" { { name = "aws-otel-collector", - image = "public.ecr.aws/aws-observability/aws-otel-collector:latest", + image = "public.ecr.aws/aws-observability/aws-otel-collector:${local.otel_image_tag}", cpu = local.otel_cpu, memory = local.otel_memory, essential = true,