If you want to force HTTPS on Amazon Elastic Beanstalk, you can do it by setting up a redirect from HTTP to HTTPS in your application. You can add the following code to your .htaccess file to do this:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule .*$ https://www.example.com/$1 [R=301,L]
Replacing www.example.com with your actual domain name.
You may also need to make a change to your application configuration to tell it to use HTTPS. Consult the documentation for your particular application for more information.
If you're using a load balancer in front of your Elastic Beanstalk environment, you can also configure it to redirect HTTP to HTTPS. Consult the documentation for your load balancer for more information.