I have a multi-tenant application that I've deployed to Elastic Beanstalk. Each tenant has a distinct sub-domain that they access the application from. After I deployed to Elastic Beanstalk I was able to access the application from the Elastic Beanstalk URL that was provided, but adding a sub-domain resulted in a 404.
The second thing I did was purchase a domain on Route 53 and set up a hosted zone to point to the application hosted on Elastic Beanstalk. I've read several sets of instructions on how to point a domain or sub-domain to an Elastic Beanstalk instance, but so far nothing has worked. Here's what I've tried:
- Set up an A record for the domain to point to the elastic IP of the single Elastic Beanstalk instance.
- Set up an A record for the sub-domain to point to the elastic IP of the single Elastic Beanstalk instance.
- Set up a CNAME record for the sub-domain to point to the Elastic Beanstalk URL provided when I launched my application.
- Set up a CNAME record for the sub-domain to point to the public DNS entry of the single Elastic Beanstalk instance.
Each time I try to access the application, the DNS will not resolve. I can ping my domain and it will resolve to an IP address that I don't recognize, but nothing else.
nslookup sub1.domainqa.com. 220.127.116.11
*** google-public-dns-a.google.com can't find admin.cscoastqa.com.: Non-existent domain
How do I point several sub-domain of a domain that resides on Route 53 to the same Elastic Beanstalk application?