Skip to content

ALB with HTTPs listener: Is there a full step-by-step anywhere?

0

I'd like to set up an HTTPS listener for an ALB. I've tried to follow AWS's instructions here: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html

But there seems to be a "step 0" that those instructions don't mention. Do I need to first purchase a domain?

Also, it seems like there are additional steps required to configure the DNS records for the domain, which again are not covered in the docs linked above.

Can anyone recommend a COMPLETE step-by-step guide -- one that includes creating a domain on Route 53 AND configuring the domain properly, in addition to setting up the https listener -- to setting up an https listener for an ALB?

asked a year ago1.1K views
2 Answers
0

Hi Stu. This guide may help you with the 'Step 0' piece. It covers HTTP listeners, but you can fill in the HTTPS pieces from the doc you linked.

https://aws.amazon.com/getting-started/hands-on/get-a-domain/

AWS
EXPERT
answered a year ago
0

Do I need to first purchase a domain?

Strictly speaking you don't, although without your own domain you'll find the functionality and useability is limited. But if you just want to get familiar with load-balancing then you don't need one, no.

You can stand up an ALB, and behind there will be a target group inside which is (say) an EC2 instance running a webserver. The ALB will have a DNS name along the lines of [something].[region].elb.amazonaws.com and you can try to connect to that in a browser using HTTPS. But it will give you a certificate error, because obviously you don't own amazonaws.com so you can't generate & attach a cert for the domain.

Enter image description here

Here you can click Advaned and then Accept (the exact words might be slightly different on your browser) and your browser will trust the [something].[region].elb.amazonaws.com site and the connection goes on to the target group and the EC2 instance within it.

It makes sense to have two listeners on the ALB, Listener #1 listening on port 80 (plain HTTP) and redirecting to port 443 (HTTPS) https://repost.aws/knowledge-center/elb-redirect-http-to-https-using-alb

Listener #2 listening on HTTPS port 443, and the ALB does the SSL offloading. Then pass through to the target group with plain HTTP on port 80. And the webserver (Apache, nginx, whatever) on the EC2 listening on port 80.

If you have your own domain, the Route 53 steps are laid out here https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-elb-load-balancer.html

EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.