From 0f27fdcdbf098f92e416bb834e11dcd16a1cd0c5 Mon Sep 17 00:00:00 2001 From: Guillaume Dussault Date: Thu, 26 Sep 2024 09:13:21 -0400 Subject: [PATCH] fix: pass the value of variable health_check_unhealthy_threshold to the alb_ingress module --- main.tf | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/main.tf b/main.tf index 46151f5..e228579 100644 --- a/main.tf +++ b/main.tf @@ -30,21 +30,22 @@ module "alb_ingress" { source = "cloudposse/alb-ingress/aws" version = "0.25.1" - vpc_id = var.vpc_id - port = var.service_container_port - protocol = var.service_container_protocol - health_check_enabled = var.health_check_enabled - health_check_path = local.health_check_path - health_check_matcher = var.health_check_matcher - health_check_port = var.health_check_port - health_check_protocol = var.health_check_protocol - health_check_timeout = var.health_check_timeout - health_check_healthy_threshold = var.health_check_healthy_threshold - health_check_interval = var.health_check_interval - default_target_group_enabled = true - stickiness_type = var.alb_ingress_stickiness_type - stickiness_cookie_duration = var.alb_ingress_stickiness_cookie_duration - stickiness_enabled = var.alb_ingress_stickiness_enabled + vpc_id = var.vpc_id + port = var.service_container_port + protocol = var.service_container_protocol + health_check_enabled = var.health_check_enabled + health_check_path = local.health_check_path + health_check_matcher = var.health_check_matcher + health_check_port = var.health_check_port + health_check_protocol = var.health_check_protocol + health_check_timeout = var.health_check_timeout + health_check_healthy_threshold = var.health_check_healthy_threshold + health_check_unhealthy_threshold = var.health_check_unhealthy_threshold + health_check_interval = var.health_check_interval + default_target_group_enabled = true + stickiness_type = var.alb_ingress_stickiness_type + stickiness_cookie_duration = var.alb_ingress_stickiness_cookie_duration + stickiness_enabled = var.alb_ingress_stickiness_enabled context = module.this.context attributes = concat(module.this.attributes, [lower(var.service_container_protocol), var.service_container_port])