
AWS Solutions Architect – Associate · Graduation project 3. An architecture design for a production-style, fully serverless to-do application.
| Architecture | Serverless |
| Region | us-east-1 (needed for a CloudFront-scoped WAF web ACL) |
| Compute | AWS Lambda, Python 3.12 on Graviton (arm64) |
| IaC | AWS SAM / CloudFormation |
Request flow
- The user signs in on the Cognito hosted UI with the OAuth 2.0 authorization code flow + PKCE and gets a JWT.
- Every request hits CloudFront over HTTPS, and AWS WAF inspects it at the edge: rate limiting, geo blocking, OWASP common rules, IP reputation and known bad inputs.
- Website requests (
/*) are served from a private S3 bucket through Origin Access Control. The bucket is never public. - API requests (
/todos*) are forwarded to API Gateway with the user’sAuthorizationheader plus a secretx-api-keythat only CloudFront knows, so the API can’t be called around the edge. - API Gateway’s Cognito authorizer validates the JWT before any Lambda runs.
Security: defense in depth
Edge filtering with WAF, a private origin, a CloudFront-only API key, JWT validation at the gateway, and X-Ray tracing end to end. The repo also covers the cost estimate, the Well-Architected mapping and future improvements.