← All missions
A rank
Mission report

Serverless REST API on AWS

AWS SAA graduation project: S3 + CloudFront frontend, API Gateway + Lambda backend, DynamoDB, Cognito auth with PKCE, WAF at the edge and X-Ray tracing.

27 Oct 2026AWS / Lambda / API Gateway
#AWS#Lambda#API Gateway#DynamoDB#Cognito#WAF#CloudFront#SAM

Architecture

AWS Solutions Architect – Associate · Graduation project 3. An architecture design for a production-style, fully serverless to-do application.

ArchitectureServerless
Regionus-east-1 (needed for a CloudFront-scoped WAF web ACL)
ComputeAWS Lambda, Python 3.12 on Graviton (arm64)
IaCAWS SAM / CloudFormation

Request flow

  1. The user signs in on the Cognito hosted UI with the OAuth 2.0 authorization code flow + PKCE and gets a JWT.
  2. 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.
  3. Website requests (/*) are served from a private S3 bucket through Origin Access Control. The bucket is never public.
  4. API requests (/todos*) are forwarded to API Gateway with the user’s Authorization header plus a secret x-api-key that only CloudFront knows, so the API can’t be called around the edge.
  5. 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.