Skip to content

Commit

Permalink
fix(aws-ecs-tutorial): fix ecs-service module versions (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-acosta authored Aug 6, 2024
1 parent 5e41028 commit 05cab74
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 26 deletions.
34 changes: 17 additions & 17 deletions aws-ecs-tutorial/components/ecs-service/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions aws-ecs-tutorial/components/ecs-service/alb.tf
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down
7 changes: 4 additions & 3 deletions aws-ecs-tutorial/components/ecs-service/service.tf
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down

0 comments on commit 05cab74

Please sign in to comment.