Skip to content

Commit

Permalink
comment out more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-k1998 committed Dec 9, 2024
1 parent 7502fcf commit 221539d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
30 changes: 15 additions & 15 deletions terraform/environments/tribunals/modules/ecs_task/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ resource "aws_ecs_service" "ecs_service" {
type = "spread"
}

load_balancer {
target_group_arn = var.lb_tg_arn
container_name = "${var.app_name}-container"
container_port = var.server_port
}
# load_balancer {
# target_group_arn = var.lb_tg_arn
# container_name = "${var.app_name}-container"
# container_port = var.server_port
# }

deployment_circuit_breaker {
enable = true
Expand Down Expand Up @@ -184,18 +184,18 @@ resource "aws_ecs_service" "ecs_service_sftp" {
type = "spread"
}

load_balancer {
target_group_arn = var.lb_tg_arn
container_name = "${var.app_name}-container"
container_port = var.server_port
}
# load_balancer {
# target_group_arn = var.lb_tg_arn
# container_name = "${var.app_name}-container"
# container_port = var.server_port
# }

# Additional load balancer for SFTP connections
load_balancer {
target_group_arn = var.sftp_lb_tg_arn
container_name = "${var.app_name}-container"
container_port = 22
}
# load_balancer {
# target_group_arn = var.sftp_lb_tg_arn
# container_name = "${var.app_name}-container"
# container_port = 22
# }

deployment_circuit_breaker {
enable = true
Expand Down
16 changes: 8 additions & 8 deletions terraform/environments/tribunals/modules/ecs_task/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ variable "app_count" {
description = "Number of docker containers to run"
}

variable "lb_tg_arn" {
type = string
description = "Load balancer target group ARN used by ECS service"
}
# variable "lb_tg_arn" {
# type = string
# description = "Load balancer target group ARN used by ECS service"
# }

variable "server_port" {
type = string
Expand All @@ -65,7 +65,7 @@ variable "is_ftp_app" {
description = "Determines if it is an ftp app or not"
}

variable "sftp_lb_tg_arn" {
type = string
description = "Network Load balancer target group ARN used by SFTP connections"
}
# variable "sftp_lb_tg_arn" {
# type = string
# description = "Network Load balancer target group ARN used by SFTP connections"
# }
4 changes: 2 additions & 2 deletions terraform/environments/tribunals/modules/tribunal/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,6 @@ module "app_ecs_task" {
cluster_id = var.cluster_id
cluster_name = var.cluster_name
is_ftp_app = var.is_ftp_app
lb_tg_arn = var.target_group_arns["${local.module_name}"]
sftp_lb_tg_arn = ""
# lb_tg_arn = var.target_group_arns["${local.module_name}"]
# sftp_lb_tg_arn = ""
}

0 comments on commit 221539d

Please sign in to comment.