Skip to content

Commit 0689d64

Browse files
fix: Update port and protocol handling for GENEVE in aws_lb_listener (#427)
Co-authored-by: Anton Babenko <393243+antonbabenko@users.noreply.github.com>
1 parent 43be406 commit 0689d64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ resource "aws_lb_listener" "this" {
273273
}
274274
}
275275

276-
port = coalesce(each.value.port, var.default_port)
277-
protocol = coalesce(each.value.protocol, var.default_protocol)
276+
port = coalesce(each.value.protocol, var.default_protocol) != "GENEVE" ? coalesce(each.value.port, var.default_port) : null
277+
protocol = coalesce(each.value.protocol, var.default_protocol) != "GENEVE" ? coalesce(each.value.protocol, var.default_protocol) : null
278278
routing_http_request_x_amzn_mtls_clientcert_header_name = coalesce(each.value.protocol, var.default_protocol) == "HTTPS" ? each.value.routing_http_request_x_amzn_mtls_clientcert_header_name : null
279279
routing_http_request_x_amzn_mtls_clientcert_issuer_header_name = coalesce(each.value.protocol, var.default_protocol) == "HTTPS" ? each.value.routing_http_request_x_amzn_mtls_clientcert_issuer_header_name : null
280280
routing_http_request_x_amzn_mtls_clientcert_leaf_header_name = coalesce(each.value.protocol, var.default_protocol) == "HTTPS" ? each.value.routing_http_request_x_amzn_mtls_clientcert_leaf_header_name : null

0 commit comments

Comments
 (0)