-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when I try to share the same target group with an ALB load balancer that supports HTTP and HTTPS #23
Comments
@jonathandemoor I would recommend using a I submitted a PR that will give that possibility. |
Wouldn't it be easier to make the Load Balancer part optional in the In the case I described we just want to use the same target group (with HTTP protocol) for both HTTP en HTTPS listeners, that's it 😉 |
any update on this? TLS termination seems like a pretty standard thing to do with ALB no? I can take a look at this in a bit |
I also have this use case. The redirect is helpful for HTTP -> HTTPS, however, with the current setup both health checks and the target group use HTTPS, however my task definition only supports HTTP |
OK, I hit exactly this problem. Basically I wanted HTTP ALB -> HTTP TARGET GROUP But you can't do this at present, AFAICS. The workaround/"fix" (although a real fix will need to distinguish that this is desired behavior) is: In ecs-fargate-service.ecs-alb/main.tf to change the section under resource "aws_lb_listener" "lb_https_listeners" to change:
|
Further: the tweaked versions that I made are in this repo https://github.com/MartinPaulEve/django-fargate |
Hi @MartinPaulEve, thanks for your comments. If it's not too much to ask, will you be able to create a PR to fix the issue in this module? Any contribution you'd like to make to any module is more than welcome! |
Hi @jnonino - thanks for this. I think the challenge is that what I have done, in my slightly hacky solution, is to remove the HTTPS target group entirely, which may or may not be what the user wants. Some users will want the HTTPS LB listener to go to an HTTPS target group, while others will want HTTPS LB listener to go to the HTTP target group. I'm afraid my terraform isn't good enough to work out quite how to give that kind of optionality. I just encountered a challenge, myself, in getting the HTTPS->HTTP bit working and so removed the HTTPS target group. |
The following settings work for HTTPS only services
|
Hi,
The current situation when using the
terraform-aws-ecs-fargate-service
module:Is it possible to point both ALB listeners (HTTP and HTTPS) to the same HTTP Target Group?
The app (Node.js) that is running in the ECS Task Definition only supports HTTP, that why I would like to point both ALB listeners to the same Target Group.
At this moment when you define
lb_http_ports
andlb_https_ports
the module automatically created 2 separate target groups.Another question, what is the main reason why you moved the ALB module into the
terraform-aws-ecs-fargate-service
module? It would give us more flexibility when the ALB module was defined outside the Fargate Service module or could be optional.Thanks in advance,
Jonathan
The text was updated successfully, but these errors were encountered: