Skip to content

Commit dd174a2

Browse files
committed
Fix length
1 parent c7d93a1 commit dd174a2

File tree

1 file changed

+2
-2
lines changed
  • operations/deployment/terraform/modules/aws/lb

1 file changed

+2
-2
lines changed

operations/deployment/terraform/modules/aws/lb/aws_lb.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ resource "null_resource" "http_redirect_dep" {
9595

9696
# Listeners for ALB
9797
resource "aws_alb_listener" "lb_listener_ssl" {
98-
count = local.alb_ssl_available ? length(local.alb_ports_ammount) : 0
98+
count = local.alb_ssl_available ? local.alb_ports_ammount : 0
9999
load_balancer_arn = aws_lb.vm_alb.arn
100100
port = local.alb_listen_port[count.index]
101101
protocol = local.alb_listen_protocol[count.index]
@@ -114,7 +114,7 @@ resource "aws_alb_listener" "lb_listener_ssl" {
114114
}
115115

116116
resource "aws_alb_listener" "lb_listener" {
117-
count = local.alb_ssl_available ? 0 : length(local.alb_ports_ammount)
117+
count = local.alb_ssl_available ? 0 : local.alb_ports_ammount
118118
load_balancer_arn = aws_lb.vm_alb.arn
119119
port = local.alb_listen_port[count.index]
120120
protocol = local.alb_listen_protocol[count.index]

0 commit comments

Comments
 (0)