Skip to content

Commit

Permalink
chore: pin otel image version (#189)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
nopestack and daniel authored Oct 9, 2024
1 parent fa34c63 commit d9abe5a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions terraform/ecs/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d9abe5a

Please sign in to comment.