Deploy an application in Elastic Beanstalk with Nginx and with SSL, without ACM
I love Elastic Beanstalk. It’s an awesome PaaS solution which makes application deployment a breeze with automatic scaling. Being under the umbrella of AWS, it is also really robust and has so many features.

In typical scenarios, the load balancer should handle the HTTPS traffic and send the plaintext traffic to the backend servers via TCP 80. But I have seen a lot of scenarios where there is need to encrypt the traffic from load balancer to the end servers also, so that the business can have SSL implemented throughout the way. In these cases, we have to configure SSL in the webserver ( Apache/Nginx) also.
In this post let’s deploy an application in Elastic Beanstalk with Nginx to proxy the requests. We will also configure SSL in Nginx with certificates available in the S3( Not using ACM)
The code is hosted here:
I have used the plain sample application provided by AWS and added the necessary files for SSL.
We need only 3 files.
- nginx-proxy.config This file enables the nginx features so that Elastic Beanstalk knows that it needs to use Nginx as a proxy server.












