Route HTTP to HTTPS elastic beanstalk load balancer

0

Hello,

Using this link as a guide https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https.html

I added an AWS "classic" load balancer to an existing elastic beanstalk environment (accepted default load balance settings); the listener was updated to include https on port 443 with an AWS provided SSL certificate.

After applying these settings, the website is only available as http://bsatroop706.org/index (the https url is does not accept a browser request). What additional configuration might be needed to enable SSL/TLS? The https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https.html doesnt indicate if additional configuration is needed...

Ideas appreciated

MikeK
已提問 1 年前檢視次數 904 次
2 個答案
1

To get https "working" for a website, e.g. bsatroop706.org

The following broad strokes were followed

referenced this youtube video https://www.youtube.com/watch?v=kvM-Tfa71eo (very clear instructions/steps)

Here are the instructions that I extracted from the video and successfully implemented:

Pre-requisites

  1. domain exists
  2. ssl certificate exists

-> Created Environment using Elastic Beanstalk

(you could do this without beanstalk, but for someone that is not an AWS dev ops person, this might a better choice)

. add your application, in my case, application exists in a jar file - to uploaded that jar

-> Configure environment selecting "custom configuration" -> this moves you out of the free tier

-> Configure instances / processes

. select your processor (I set to nano)

. select your instance count (I set to one)

-> Configure "application load balancer". Change the following . port 443, protocol HTTPS, . select certificate you created earlier . selected random "ssl policy"

-> Create "Environment Process". Change the following . name "SSL" can be anything . port 443 . protocol HTTPS

Configure "Route 53" DNS. Change the following

  • Add A record . reference "application load balancer"

Configure EC2. Change the following: -> configure application load balancer . update "listener" tab "traffic from website/client goes across https" and is decrypted/encryted using the application load balancer

Edit port 80 . delete "forwarding entry" . add a redirect entry . protocol "HTTPS" . port "443"

That worked for me

MikeK
已回答 1 年前
0

Hello, it's great to see that you have successfully configured your HTTPS site. I'd also like to thank you for returning to explain the solution for anyone else who may face this issue in the future.

This AWS document also explains the ALB listener rule configuration that you've summarized. This may come in handy for yourself or others in future endeavors.

AWS
支援工程師
TJ_T
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南