Assume that you are using an Application Load Balancer.
- In the load balancer settings of the ElasticBeanstalk configuration, there is no http -> https redirection setting even if you wash your eyes and look for it.
But let's set the port 80 and 443 here
- Go to
EC2 - Load Balancer
and find the load balancer being used in the ElasticBeanstalk environment you want to configure.
- Move to the 'Listener' item of the found load balancer.
- 80 Change the port listener setting.
- Remove the
Forward
setting set as the default value, and set Redirect
as a new one.
- You can set it as below.
- I don't know what ElasticBeanstalk doesn't have http -> https Redirect settings