We have to deploy Restful Webservice(API services) and static pages in the AWS environment. Currently, our Webservice is hosted in EC2 instance with one ELB and Route53. Also, the static pages are deployed in the S3 bucket. The Webservice and Website, both should be in the same domain.
When the user calls "www.domain.com/" it should be routed to the S3 server. However the API calls (www.domain.com/api/**) should be routed to EC2 through ELB. Is there any way to route API calls to ELB and website access calls to S3 using Route53? or What is the best approach to resolve this?