diff --git a/terraform/environments/tribunals/modules/ecs_task/main.tf b/terraform/environments/tribunals/modules/ecs_task/main.tf index 31cf4a6f371..6e820a3e931 100644 --- a/terraform/environments/tribunals/modules/ecs_task/main.tf +++ b/terraform/environments/tribunals/modules/ecs_task/main.tf @@ -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 @@ -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 diff --git a/terraform/environments/tribunals/modules/ecs_task/variables.tf b/terraform/environments/tribunals/modules/ecs_task/variables.tf index f6112ca094a..d6158588066 100644 --- a/terraform/environments/tribunals/modules/ecs_task/variables.tf +++ b/terraform/environments/tribunals/modules/ecs_task/variables.tf @@ -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 @@ -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" +# } diff --git a/terraform/environments/tribunals/modules/tribunal/main.tf b/terraform/environments/tribunals/modules/tribunal/main.tf index addf317b88d..d57fa7e2191 100644 --- a/terraform/environments/tribunals/modules/tribunal/main.tf +++ b/terraform/environments/tribunals/modules/tribunal/main.tf @@ -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 = "" }