Reputation: 1690
I have an Elastic Beanstalk (EB) app deployed with a load balancer. In Route53 I defined an alias myapp.mydomain.com
to point to the EB url. It works fine.
But when I change the EB environment type to 'Single Instance' (from 'Load Balanced'), the alias doesn't work anymore.
Is there a way to use aliases for non-Load-Balanced environments?
Upvotes: 1
Views: 420
Reputation: 238249
Based on the comments.
The issue is caused by ACM SSL certificate. On the load balanced EB environment, the SSL certs are deployed on the ALB. This provides HTTPS capability for your environment.
Single-instance EB environments don't have any load balancer. Thus you have to provide SSL certificates directly on your EB instance. However, ACM ssl certificates can't be used on instances.
To rectify the issue you have two options:
client----HTTPS (ACM SSL cert)---->CF----HTTP---->EB
As you see, between CF and your EB instance you will have HTTP traffic, which may be not desired. To fix that you can't use self-signed certificates nor ACM cert. You need a public ssl certificate from a third party, such as free https://letsencrypt.org/.
This brings us to the second option:
Using this option you would have:
client----HTTPS (third party SSL cert)---->EB
Upvotes: 1