From e2f6c4885512d845a78781890162f60403a1697a Mon Sep 17 00:00:00 2001 From: crypdoughdoteth Date: Sun, 15 Feb 2026 14:55:46 -0500 Subject: [PATCH] Update IaC dependencies and fix breaking changes --- infra/opentofu/ecs/backend.tf | 4 ++-- infra/opentofu/ecs/main.tf | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/infra/opentofu/ecs/backend.tf b/infra/opentofu/ecs/backend.tf index 28739d5..7110ee2 100644 --- a/infra/opentofu/ecs/backend.tf +++ b/infra/opentofu/ecs/backend.tf @@ -6,11 +6,11 @@ terraform { encrypt = true } - required_version = ">= 1.0.0" + required_version = ">= 1.5.7" required_providers { aws = { source = "hashicorp/aws" - version = "~> 5" + version = "~> 6.32.1" } } } diff --git a/infra/opentofu/ecs/main.tf b/infra/opentofu/ecs/main.tf index 8436901..90e7703 100644 --- a/infra/opentofu/ecs/main.tf +++ b/infra/opentofu/ecs/main.tf @@ -20,7 +20,7 @@ data "aws_ami" "ecs_ami" { module "ecs" { source = "terraform-aws-modules/ecs/aws" - version = "5.12.1" + version = "7.3.0" cluster_name = "rpc-ecs-cluster" @@ -33,18 +33,13 @@ module "ecs" { } } - default_capacity_provider_use_fargate = true - - fargate_capacity_providers = { + cluster_capacity_providers = ["FARGATE", "FARGATE_SPOT"] + default_capacity_provider_strategy = { FARGATE = { - default_capacity_provider_strategy = { weight = 20 - } } FARGATE_SPOT = { - default_capacity_provider_strategy = { weight = 80 - } } } @@ -53,6 +48,11 @@ module "ecs" { cpu = 2048 memory = 4096 + runtime_platform = { + cpu_architecture = "ARM64" + operating_system_family = "LINUX" + } + # Container definition(s) container_definitions = { path = { @@ -86,7 +86,7 @@ module "ecs" { credentialsParameter = "arn:aws:secretsmanager:us-east-2:975950814568:secret:GhcrCredentials-j8eElR" } - port_mappings = [ + portMappings = [ { name = "dd-rpc" containerPort = 3000 @@ -184,7 +184,7 @@ resource "aws_acm_certificate_validation" "validation" { module "alb" { source = "terraform-aws-modules/alb/aws" - version = "~> 9.0" + version = "~> 10.5" name = "${local.name}-alb" load_balancer_type = "application" vpc_id = data.terraform_remote_state.vpc.outputs.vpc_id