...

/

Enabling HTTPS on Our Load Balancer

Enabling HTTPS on Our Load Balancer

Learn to use the ACM certificate to enable HTTPS on the load balancer.

We are very close to enabling HTTPS for our WordPress blog! We're now ready to enable HTTPS on our load balancer. To do so, we need to add a new HTTPS listener that will accept encrypted connections on port 443 and forward requests via HTTP to our WordPress instances on port 80.

Creating an HTTPS listener

Creating an HTTPS listener is very similar to creating an HTTP listener. We just need to specify a few more parameters regarding the TLS/SSL encryption.

1.

Do you remember how we set up the HTTP listener?

Show Answer
Q1 / Q1
Did you find this helpful?

Use the command below to create the HTTP listener:

Press + to interact
aws elbv2 create-listener \
--load-balancer-arn $(aws elbv2 describe-load-balancers \
--names wordpress-lb \
--query 'LoadBalancers[0].LoadBalancerArn' \
--output text) \
--protocol HTTP \
--port 80 \
--default-actions Type=forward,TargetGroupArn=$(aws elbv2 describe-target-groups \
--names wordpress-instances \
--query 'TargetGroups[0].TargetGroupArn' \
--output text)
...