Host your frontend on S3 + CloudFront since it's static files.
For database calls, deploy your backend API in Lambda and connect it to your database. Embed the Lambda API endpoints in your frontend code.
Here's what happens:
- CloudFront serves your static frontend
- Lambda handles your database calls (dynamic operations)
Amit Ghatage
I am an Developer and Looking for Solving Challenging problems to enhance my Skillset and Contribute to growth of an impacting organization.
is this setup only for static apps ? how can i deploy my application with database calls on aws cloudfront ?