From 05cab74ddc658f6cc39d91fe0bae47936da01445 Mon Sep 17 00:00:00 2001 From: Jordan Acosta Date: Tue, 6 Aug 2024 12:51:06 -0700 Subject: [PATCH] fix(aws-ecs-tutorial): fix ecs-service module versions (#42) --- .../ecs-service/.terraform.lock.hcl | 34 +++++++++---------- .../components/ecs-service/alb.tf | 13 +++---- .../components/ecs-service/service.tf | 7 ++-- 3 files changed, 28 insertions(+), 26 deletions(-) diff --git a/aws-ecs-tutorial/components/ecs-service/.terraform.lock.hcl b/aws-ecs-tutorial/components/ecs-service/.terraform.lock.hcl index 1f19a7c..09150ea 100644 --- a/aws-ecs-tutorial/components/ecs-service/.terraform.lock.hcl +++ b/aws-ecs-tutorial/components/ecs-service/.terraform.lock.hcl @@ -2,24 +2,24 @@ # Manual edits may be lost in future updates. provider "registry.terraform.io/hashicorp/aws" { - version = "5.54.1" - constraints = ">= 4.0.0, >= 4.40.0, >= 4.66.1, >= 5.46.0" + version = "5.61.0" + constraints = ">= 4.0.0, >= 4.40.0, >= 4.66.1, >= 5.59.0" hashes = [ - "h1:+aq386lQCaPX7wR6EPf3PPZvCiI6dRwnjb1wR6lNa8E=", - "zh:37c09b9a0a0a2f7854fe52c6adb15f71593810b458a8283ed71d68036af7ba3a", - "zh:42fe11d87723d4e43b9c6224ae6bacdcb53faee8abc58f0fc625a161d1f71cb1", - "zh:57c6dfc46f28c9c2737559bd84acbc05aeae90431e731bb72a0024028a2d2412", - "zh:5ba9665a4ca0e182effd75575b19a4d47383ec02662024b9fe26f78286c36619", + "h1:qYXhPfMOxgOYuSjfe7+P2wdqx4oMkPYgH4XUN3fJb54=", + "zh:1a0a150b6adaeacc8f56763182e76c6219ac67de1217b269d24b770067b7bab0", + "zh:1d9c3a8ac3934a147569254d6e2e6ea5293974d0595c02c9e1aa31499a8f0042", + "zh:1f4d1d5e2e02fd5cccafa28dade8735a3059ed1ca3284fb40116cdb67d0e7ee4", + "zh:26be6f759bded469de477f54c7eb7a9ca9f137a3b52f9fd26cbd864f16973912", + "zh:276e308ae7aa281fe24f7275673aa05f00cb830b83c2b9797f9aa55f10769c52", + "zh:45c09beeadb4269d518de0bd341cbe9f061157ab54c543d39168ecefff40bbe2", + "zh:58fb5ef076dc63e284ce28b47b7cc35a17d2596f11e2373fe568c6140277e9d8", + "zh:64d51cc1ad412379f64b75883a881a5d682a8e9737ad14479f6a2d62e77f7dbe", + "zh:71e2e332317cf095288d65a801e95b65fd696204997b2db5250862d6c5669518", + "zh:9864014aa4716b5bfb3b27d009f158dd6a67c215fd0dfbe3a5d1a7cee72c5677", "zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425", - "zh:b55980be0237644123a02a30b56d4cc03863ef29036c47d6e8ab5429ab45adf5", - "zh:b81e7664f10855a3a6fc234a18b4c4f1456273126a40c41516f2061696fb9870", - "zh:bd09736ffafd92af104c3c34b5add138ae8db4402eb687863ce472ca7e5ff2e2", - "zh:cc2eb1c62fba2a11d1f239e650cc2ae94bcab01c907384dcf2e213a6ee1bd5b2", - "zh:e5dc40205d9cf6f353c0ca532ae29afc6c83928bc9bcca47d74b640d3bb5a38c", - "zh:ebf1acdcd13f10db1b9c85050ddaadc70ab269c47c5a240753362446442d8371", - "zh:f2fc28a4ad94af5e6144a7309286505e3eb7a94d9dc106722b506c372ff7f591", - "zh:f49445e8435944df122aa89853260a2716ba8b73d6a6a70cae1661554926d5a2", - "zh:fc3b5046e60ae7cab20715be23de8436eb12736136fd6d0f0cc1549ebda6cc73", - "zh:fdb98a53500e245a3b5bec077b994da6959dba8fc4eb7534528658d820e06bd5", + "zh:d8bf9ba43bd938faab37d8fb515c32a905d6dace60f5ff2663b06ffdc89a62e9", + "zh:e654be9d3980e7cc70f9825fe0d0205e254edd87832f18b2d7f9c72b09b776cd", + "zh:ee5ce6fbe75be3e90cabba3fad76fcfde50ab795e523b4ee917cfe8ba8ad42fe", + "zh:ef12098e7b3ddf9ab286bb209de87dfa8e52106049ced0841e3e6487dbff3659", ] } diff --git a/aws-ecs-tutorial/components/ecs-service/alb.tf b/aws-ecs-tutorial/components/ecs-service/alb.tf index 8d7817b..4041c1f 100644 --- a/aws-ecs-tutorial/components/ecs-service/alb.tf +++ b/aws-ecs-tutorial/components/ecs-service/alb.tf @@ -1,5 +1,6 @@ module "ingress" { - source = "terraform-aws-modules/alb/aws" + source = "terraform-aws-modules/alb/aws" + version = "~> 9.10.0" name = var.service_name vpc_id = var.vpc_id @@ -52,11 +53,11 @@ module "ingress" { target_groups = { api = { - name_prefix = "api" - protocol = "HTTP" - backend_port = var.container_port - target_type = "ip" - create_attachment = false + name_prefix = "api" + protocol = "HTTP" + backend_port = var.container_port + target_type = "ip" + create_attachment = false deregistration_delay = 5 load_balancing_cross_zone_enabled = true diff --git a/aws-ecs-tutorial/components/ecs-service/service.tf b/aws-ecs-tutorial/components/ecs-service/service.tf index d948a1f..3642776 100644 --- a/aws-ecs-tutorial/components/ecs-service/service.tf +++ b/aws-ecs-tutorial/components/ecs-service/service.tf @@ -1,12 +1,13 @@ module "service" { - source = "terraform-aws-modules/ecs/aws//modules/service" + source = "terraform-aws-modules/ecs/aws//modules/service" + version = "~> 5.11.0" name = var.service_name cluster_arn = var.cluster_arn desired_count = 3 - cpu = 1024 - memory = 4096 + cpu = 1024 + memory = 4096 container_definitions = { api = {