From 5f04297b9e24e79ff0cd8e3636437a7d506b0860 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 11 Oct 2022 00:47:26 +0000 Subject: [PATCH 1/2] Update Terraform cn-terraform/ecs-fargate/aws to v2.0.47 --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index aa07cda..e71b925 100644 --- a/main.tf +++ b/main.tf @@ -71,7 +71,7 @@ module "aws_cw_logs" { #------------------------------------------------------------------------------ module "ecs_fargate" { source = "cn-terraform/ecs-fargate/aws" - version = "2.0.46" + version = "2.0.47" # source = "../terraform-aws-ecs-fargate" name_prefix = "${var.name_prefix}-nexus" From 26f00238a388679126b47ca4e563a2a81caf1620 Mon Sep 17 00:00:00 2001 From: Julian Nonino Date: Mon, 7 Nov 2022 16:44:18 +0000 Subject: [PATCH 2/2] Update variables --- main.tf | 1 + variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/main.tf b/main.tf index e71b925..d04c31e 100644 --- a/main.tf +++ b/main.tf @@ -90,6 +90,7 @@ module "ecs_fargate" { mount_points = var.mount_points # Application Load Balancer + custom_lb_arn = var.custom_lb_arn lb_http_ports = var.lb_http_ports lb_https_ports = var.lb_https_ports lb_enable_cross_zone_load_balancing = var.lb_enable_cross_zone_load_balancing diff --git a/variables.tf b/variables.tf index 9621d30..f31e41a 100644 --- a/variables.tf +++ b/variables.tf @@ -89,6 +89,12 @@ variable "log_group_retention_in_days" { #------------------------------------------------------------------------------ # APPLICATION LOAD BALANCER LOGS #------------------------------------------------------------------------------ +variable "custom_lb_arn" { + description = "ARN of the Load Balancer to use in the ECS service. If provided, this module will not create a load balancer and will use the one provided in this variable" + type = string + default = null +} + variable "enable_s3_logs" { description = "(Optional) If true, all resources to send LB logs to S3 will be created" type = bool