title: How do I enable HTTPS on my AWS EC2 Instance running a Docker Container
body: <p>I am running a Spring Boot Application (as a RESTful Webservice) <strong>dockerized</strong> in an <strong>EC2 Instance</strong>. If I start the container, everything is working fine, but only with <strong>HTTP</strong>. <code>e.g. http://ec2-54-93-55.eu-central...com</code></p>
  
  <p>I already tried setting up the Security Groups of my EC2 Instance, where I enabled HTTPS, but it still does not work.</p>
  
  <p>Now I want to add a SSL Certificate to my Instance with the AWS Certificate Manager. The problem is now, that I need a hosted domain for this and I can not use the Domain of my EC2 Instance.</p>
  
  <p>I tried setting it up as <code>api.mydomain.com</code> and it is verified now. How can I now connect my EC2 Instance with this domain? </p>
  
  <p>I tried creating an Alias in Route 53 by routing api.mydomain.com to the EC2 public DNS. But this did not work too.</p>