Setting up Subdomains within Amazon AWS Elastic Beanstalk

amazon ec2amazon-ebsamazon-web-services

I'm trying to setup an application within Amazon's Elastic Beanstalk, and I'd like to use a subdomain for part of the application. Ideally, that subdomain would be mapped to a folder within the document root (ie: http://test.mydomain.com pulls the sources from /var/www/html/test). I could setup another alias record in Route 53 for the subdomain, but how do I map Apache?

The only way I can think to accomplish this is to SSH in to a server directly, add the VirtualHost entry to my httpd.conf, then roll that server into an AMI and redeploy across EBS. Is that the only option? (it seems like there must be an easier way)

Thanks!

Best Answer

This is not possible with Elastic Beanstalk (at least not without really misusing it). Elastic Beanstalk is "fire and forget" type of PaaS solution aimed at simple deployments. If you really need this type of functionality, look into CloudFormation which lets you get much more granular with your instance configurations.

Related Topic