From faf22413bca3bd3794354030e5f73e3f6bf46444 Mon Sep 17 00:00:00 2001 From: Rocket Date: Tue, 13 Aug 2024 17:04:50 -0700 Subject: [PATCH 1/2] Update app/service root module aws provider version (>=5.35.0) --- infra/app/service/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/app/service/main.tf b/infra/app/service/main.tf index 3631a4a8..38114280 100644 --- a/infra/app/service/main.tf +++ b/infra/app/service/main.tf @@ -47,7 +47,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.56.0, < 5.0.0" + version = ">= 5.35.0, < 6.0.0" } } From 42238b2fd3e0cd6e5ad12b5d694ace93c7dadff2 Mon Sep 17 00:00:00 2001 From: Rocket Date: Tue, 13 Aug 2024 17:43:07 -0700 Subject: [PATCH 2/2] Use new v5.x ecs task definition tag propagation --- infra/modules/service/jobs.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/infra/modules/service/jobs.tf b/infra/modules/service/jobs.tf index 0d0bef71..f0051aa1 100644 --- a/infra/modules/service/jobs.tf +++ b/infra/modules/service/jobs.tf @@ -46,6 +46,7 @@ resource "aws_cloudwatch_event_target" "document_upload_jobs" { ecs_target { task_definition_arn = aws_ecs_task_definition.app.arn launch_type = "FARGATE" + propagate_tags = "TASK_DEFINITION" # Configuring Network Configuration is required when the task definition uses the awsvpc network mode. network_configuration {