1 Answer
- Newest
- Most votes
- Most comments
1
Are you creating a new load balancer (ALB) and trying to configure it to the same target group that is already used for another ALB? If this is the case, you need to create a new target group (you can use the same targets as in other groups)
You can specify the same target group in multiple listeners, but these listeners must belong to the same Application Load Balancer. See https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-target-group.html
Relevant content
- asked 6 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
I have successfully created the LB listening on HTTP to redirect to the EC2 Tomcats at 8080 and 8081. My end goal is to listen on HTTPS on the LB and terminate the HTTPS at the LB and forward HTTP to the EC2. Do I need two LBs (one with a CERT) or can I do it with one LB listing on both 80 and 443? And if only 1 LB how do I import the CERT? thanks Charlie D
You can have multiple listeners (one for HTTP:80 and another for HTTPS:443) on the same load balancer. Cert is attached to listener so that is not a problem. ALB can also do HTTP->HTTPS redirect, so if any of your clients try to connect with HTTP, you can redirect them to HTTPS. This doesn't affect ALB-EC2 connection that can still be HTTP. https://aws.amazon.com/about-aws/whats-new/2018/07/elastic-load-balancing-announces-support-for-redirects-and-fixed-responses-for-application-load-balancer/