How to configure a Amazon Route with SSL for a Heroku App How to configure a Amazon Route with SSL for a Heroku App heroku heroku

How to configure a Amazon Route with SSL for a Heroku App


The best option I found was to create an AWS CloudFront and configure it like Karan describes in his answer but with some add-ons:

  1. Create a certificate from AWS Certificate Manager and approve it.

  2. Create a CloudFront distribution with the Origin Domain Name as your Heroku URL such as myapp.herokuapp.com and the custom SSL certificate as the one you created from the AWS Cert Manager.

  3. While creating the distribution, make sure that you have the TTL as 0, else all the responses will be cachedenter image description hereenter image description hereIf you don't complete this step probably you will get an error like this:

    This distribution is not configured to allow the HTTP request method that was used for the request. The distribution supports only cachable requests. enter image description here

  4. Follow the guide I mention in the question [https://devcenter.heroku.com/articles/route-53][4]


Amazon created SSL certificates only work with supported Amazon services such as Elastic Load Balancers, CloudFront distributions and API Gateway.

The easiest method to use Amazon SSL certificates is to add a load balancer. Another method is to enable CloudFront.

AWS Certificate Manager