CloudFront Demo
Static site on S3 & Lambda API — both served via CloudFront
Test the API
Call GET /api/hello
Tech Stack
AWS SAM
CloudFront
S3
API Gateway
Lambda
Node.js 20.x
CloudFront routes
/*
to S3 (static files) and
/api/*
to API Gateway (Lambda). Both share the same origin domain — no CORS issues.