Lets say that I have an S3 bucket called apps.buildmysite.com for my hypothetical website buildmysite.com (I also have buildmysite.com and www.buildmysite.com as S3 buckets which host the main website).
Inside the S3 bucket is a list of folders:
app-2343242app-9402932
Each app corresponds to a separate website. I now want to create the corresponding subdomains for the above folders. So in effect:
app-2343242->http://apps.buildmysite.com.s3-website-eu-west-1.amazonaws.com/app-2343242app-9402932->http://apps.buildmysite.com.s3-website-eu-west-1.amazonaws.com/app-9402932
So when someone visits app-2343242.buildmysite.com, they are served a file residing at http://apps.buildmysite.com.s3-website-eu-west-1.amazonaws.com/app-2343242/index.html.
How would I accomplish this?