File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ resource "aws_lb_target_group" "lb_https_tgs" {
158
158
# AWS LOAD BALANCER - Listeners
159
159
# ------------------------------------------------------------------------------
160
160
resource "aws_lb_listener" "lb_http_listeners" {
161
- count = var. enable_http ? length (aws_lb_target_group . lb_http_tgs ) : 0
161
+ count = var. enable_http ? length (var . http_ports ) : 0
162
162
load_balancer_arn = aws_lb. lb . arn
163
163
port = element (aws_lb_target_group. lb_http_tgs . * . port , count. index )
164
164
protocol = element (aws_lb_target_group. lb_http_tgs . * . protocol , count. index )
@@ -169,7 +169,7 @@ resource "aws_lb_listener" "lb_http_listeners" {
169
169
}
170
170
171
171
resource "aws_lb_listener" "lb_https_listeners" {
172
- count = var. enable_https ? length (aws_lb_target_group . lb_https_tgs ) : 0
172
+ count = var. enable_https ? length (var . https_ports ) : 0
173
173
load_balancer_arn = aws_lb. lb . arn
174
174
port = element (aws_lb_target_group. lb_https_tgs . * . port , count. index )
175
175
protocol = element (aws_lb_target_group. lb_https_tgs . * . protocol , count. index )
You can’t perform that action at this time.
0 commit comments