From ef362310ac5eadfa8b3ef2d92ad366193b2f728b Mon Sep 17 00:00:00 2001 From: oycyc Date: Thu, 7 Nov 2024 11:23:19 -0500 Subject: [PATCH] feat: use OR instead of ternary to be more clean --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 3a7ec46..4804301 100644 --- a/main.tf +++ b/main.tf @@ -203,7 +203,7 @@ resource "aws_lb_listener" "https" { tags = merge(module.this.tags, var.listener_additional_tags) default_action { - target_group_arn = var.listener_https_fixed_response != null ? null : var.listener_https_redirect != null ? null : one(aws_lb_target_group.default[*].arn) + target_group_arn = var.listener_https_fixed_response != null || var.listener_https_redirect != null ? null : one(aws_lb_target_group.default[*].arn) type = var.listener_https_fixed_response != null ? "fixed-response" : var.listener_https_redirect != null ? "redirect" : "forward" dynamic "fixed_response" {