Open rzimmerman opened 2 years ago
@rzimmerman There is an aspect of this where you are asking the machine to do something technically invalid, as it's accepted that HTTP/HTTPS are barriers of separation between things and trying to force them into the same place is bound to cause errors.
I think what you are looking for here is a redirect rule for HTTP:
lb_http_ports = {
redir = {
type = "redirect"
listener_port = 80
target_group_port = 3000
port = 443
protocol = "HTTPS"
}
}
I'm running into an issue when I try to forward both HTTP and HTTPS to the same container port. As an example:
When I apply this configuration, I see:
I believe this is because this module creates an ingress rule for HTTP and HTTPS traffic (one each) that wind up being identical (main.tf:116):
There might be some way to deduplicate these rules or make them different in some semantic way to allow both rules to exist.