Force HTTPS on Elastic Beanstalk

I made a list where if you want to force redirect from Elastic Beanstalk you can follow these steps 👇

Time needed: 10 minutes.

Below Explained Steps:

  1. At the top, click Services -> click EC2 -> click Load balancers Tab at the side.

  2. Click the load balancer attached in your EB instance.

  3. Click the listener tab.

  4. Click port 80, then click Edit

  5. Delete the default rule, add new rule, and click Redirect To

  6. Fill out the fields with these values
    HTTPS: 443
    Original host, path, query
    301 Permanently moved

  7. Click Save or Update