I have been trying to setup a simple Serverless App on AWS but am failing to understand how to put the pieces together with a custom domain.
The web app routes should looks something like this:
/
-> Serves static HTML / CSS / JS from S3 Bucket/api/people/
-> Lambda Function call/api/dogs/
-> Lambda Function call/stats/
-> Lambda Function call/backend/
-> Serves static HTML / CSS / JS from S3 Bucket
I have tried using API Gateway and CloudFront and hooking them up with Route53 to my custom domain but either seem to only support static S3 or Lambda JSON routing.
How would an AWS Architecture look where I can freely choose routes to route to different AWS resources (e.g /
-> S3, /api/people/
-> Lambda, /api/dogs/
-> Lambda, /backend/
-> S3)`
Thank you very much in advance.