Right now I have a site hosted in S3 and delivery through Cloudfront and I have an application running on an EC2 instance. the problem is I need to serve the application using a folder in the domain associated with the CloudFront distribution, eg. example.com/app/
I know I can create a rule in the CloudFront distribution and process the request with a lambda function but seems like is not a good way to do it because I'll need to create a reliable proxy function and handle probably a lot of things
How proxy all request that comes to some path like "/app*" to an EC2 instance using Cloudfront?