Search code examples
amazon-web-serviceshttpsamazon-elastic-beanstalkvert.x

Vert.x, Elastic Beanstalk, and HTTPS


I have a Vert.x server running on a single-instance Elastic Beanstalk server, and I'm trying to configure it to operate over HTTPS. I've set up the NS records and A record in AWS Route 53 to map the subdomain to my instance (pinging the subdomain succeeds), requested (and verified) the certificate from ACM, and opened up port 443 in my EC2 security group. But I can't quite figure out how to "attach" the certificate to my domain (if that's somehow necessary) or to get port 443 properly mapped to my Vert.x server.

Any tips will be appreciated.


Solution

  • to get port 443 properly mapped to my Vert.x server.

    If you use ACM for the SSL certificate, you have to setup application load balancer. The process is detailed in:

    To enable load balancer for your EB environment, you have to change EB environment type to Load-balanced if you already don't have that.

    With the load balancer, you don't have to modify your application at all, as HTTPS will be fully handled by the load balancer.