Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the protocol from http to https in AWS ELB load balancer?

Is it possible at all to change the protocol and port of the Target Group created using AWS Load Balancer.

For instance, if I have set up initially HTTPS:443 as the protocol:port for my ELB and then I want to change it to HTTP:80 — how can I do that? Or do I have to delete everything and set up a new load balancer with the new settings and new target groups?

like image 815
Aerodynamika Avatar asked Jul 16 '20 08:07

Aerodynamika


People also ask

How do I add HTTPS to ELB?

To add an HTTPS listener using the consoleOn the navigation pane, under LOAD BALANCING, choose Load Balancers. Select a load balancer, and choose Listeners, Add listener. For Protocol : port, choose HTTPS and keep the default port or enter a different port.

How do I redirect http traffic to HTTPS on my classic load balancer in ELB?

Classic Load Balancers can't redirect HTTP traffic to HTTPS by default. Instead, configure your rewrite rules for the web servers instances behind the Classic Load Balancer. You must configure your rewrite rules to use the X-Forwarded-Proto header and redirect only HTTP clients.


1 Answers

This is not possible for changing the target group protocol itself.

You can change the health checks, but the target group appears to not be modifiable.

You would need to create a fresh target group with the protocol/port combination you want and then update the listener to use the new target group.

If however you want to change the listener (this is the client to load balancer connection) then you can modify or create a new listener at any time.

This can be modified either through the console or through the CLI using the modify-listener function.

like image 55
Chris Williams Avatar answered Oct 11 '22 12:10

Chris Williams