amazon-web-servicessslamazon-ec2amazon-elastic-beanstalkelastic-load-balancer

Is possible to use Amazon Elastic Beanstalk with SSL (HTTPS) without a Load Balancer?


From now on, my application needs a secure connection (HTTPS). I verify that most of tutorials for adding secure connections (https) on Amazon Web Services Elastic Beanstalk uses the Elastic Load Balancer as a tunnel.

In my case I'm running a single instance, in fact I don't need a Load Balancer. How can I add a secure connection to my instance without a Elastic Load Balancer? Is that possible?

I am using 64bit Amazon Linux 2017.03 v2.4.4 running PHP 7.0 Elastic Beanstalk.


Solution

  • That is definitely possible. Here is an example from AWS using Apache.

    The basic steps are:

    1. Enable SSL on the server
    2. Get a certificate authority (CA) signed certificate. For testing purposes you can create a self signed cert. Here is an example of how to do that using openssl.