AWS equivalent of Azure's function-app-front-door sample.
This sample demonstrates a Lambda function fronted by CloudFront CDN.
┌─────────┐ HTTPS ┌─────────────┐ Invoke ┌─────────┐
│ Client │ ──────────────▶ │ CloudFront │ ────────────▶ │ Lambda │
└─────────┘ │ (CDN) │ │ @Edge │
└─────────────┘ └─────────┘
CloudFront provides:
- Global edge caching for low latency
- HTTPS termination
- Request routing to Lambda origins
- Edge functions for request/response manipulation
- LocalStack Pro running with
LOCALSTACK_AUTH_TOKEN - AWS CLI or awslocal installed
- Python 3.10+
cd scripts
./deploy.shcd terraform
./deploy.shcd scripts
./test.shsrc/handler.py- Lambda function codescripts/deploy.sh- AWS CLI deployment scriptscripts/test.sh- Functional test scriptterraform/- Terraform configuration