Skip to content

Commit

Permalink
fix: change container port to 80 (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenmartius authored Apr 22, 2024
2 parents 1b8ed48 + 2b68d74 commit d16e3cf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion stacks/prod/us-east-1/alb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module "alb" {
target_groups = {
ex_ecs = {
backend_protocol = "HTTP"
backend_port = 3000
backend_port = 80
target_type = "ip"
deregistration_delay = 5
load_balancing_cross_zone_enabled = true
Expand Down
2 changes: 1 addition & 1 deletion stacks/prod/us-east-1/alb/main.tm.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ generate_hcl "main.tf" {
target_groups = {
ex_ecs = {
backend_protocol = "HTTP"
backend_port = 3000
backend_port = 80
target_type = "ip"
deregistration_delay = 5
load_balancing_cross_zone_enabled = true
Expand Down
10 changes: 5 additions & 5 deletions stacks/prod/us-east-1/ecs-fargate-services/nginx/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ module "ecs_service" {
port_mappings = [
{
name = "nginx"
containerPort = 3000
hostPort = 3000
containerPort = 80
hostPort = 80
protocol = "tcp"
},
]
Expand All @@ -63,15 +63,15 @@ module "ecs_service" {
service = {
target_group_arn = data.aws_lb_target_group.target_group.arn
container_name = "nginx"
container_port = 3000
container_port = 80
}
}
name = "nginx"
security_group_rules = {
alb_ingress_3000 = {
type = "ingress"
from_port = 3000
to_port = 3000
from_port = 80
to_port = 80
protocol = "tcp"
description = "Service port"
source_security_group_id = data.aws_security_group.security_group.id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ generate_hcl "main.tf" {
inherit = false

lets {
container_port = 3000
container_port = 80
}

content {
Expand Down

0 comments on commit d16e3cf

Please sign in to comment.