I have been using AWS Route-53 as dns service for my application and say in my code, for every http request I have a requirement of creating some dynamic sub-domains and point it to the new ec2 instance that gets created on fly.
Any one should now be able to use the newly created sub-domain to make requests to the newly created ec2 instance.
I knew I could use wildcard dns record, but does it not just point to one single IP?
How could I make every sub-domain that was created to always point to the new ec2 instance?