I am running static hosting on s3 for my website. Eg. www.somedomain.com points to an S3 bucket.
I have a subdomain api.somedomain.com for my api, but it has been annoying to deal with cross domain issues. I want to map www.somedomain.com/api/... -> api.somedomain.com/... but without doing a full redirect (301) since I want to be able to post.
I understand that Cloudfront allows this behavior, but it's a bit overkill since I do not need the CDN.
I have gotten the routing rules to work with a 301 redirect, but is there anyway to configure s3 to pass through my requests to ec2? Thanks!