Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to enable HTTPS on Elastic Beanstalk without a load balancer?

This is my first time using AWS or any other such platform. I require an https on my website because I use stripe. I have already got an SSL certificate using AWS certificate manager. But the only way to use that is if you have a load balancer on your instance. I do not want to pay for a load balancer because it is too small of a project to do so.

Any other ways to enable HTTPS without a Load Balancer?

like image 221
Dhairya Khara Avatar asked Mar 15 '26 09:03

Dhairya Khara


2 Answers

The easiest way would be through CloudFront (CF):

  • Using Elastic Beanstalk with Amazon CloudFront

For that you would create a CF distribution and setup your SSL certificate and a custom domain (required), and setup EB environment as a custom origin.

The alternative would be to configure nginx on your EB instance to use SSL. For that you would have too check out some tutorials or docs on how to use nginx to serve https requests. Some example:

  • How to enable SSL on NGINX

But this will not work with ACM certificates from what I recall. This is one limitation of such an approach.

like image 134
Marcin Avatar answered Mar 17 '26 21:03

Marcin


As mentioned by jarmod, you can only use ACM certificates with ALB or Cloudfront which both are not free. As far as I know, there is no completely free AWS service that accomplishes this. You can use Let's Encrypt for free auto-renewable certificates to install on your webserver.

like image 21
lennart Avatar answered Mar 17 '26 22:03

lennart