zappa-cloudfront-apigw-lambda-s3.patterns.advancelocal.dev
zappa-cloudfront-apigw-lambda-s3
A Flask app on Lambda through Zappa. CloudFront serves the page and /static from S3 and caches /api/live from API Gateway.
App
- Flask, Python 3.12
Runs on
- CloudFront
- origin access control
- response headers policy
- S3
- API Gateway, regional
- API key
- Lambda, Python 3.12, deployed with Zappa
Foundation
- inf-baseline
- Wiz scanning
- Scheduled deploys and checks
Cache, live
Polling /api/live every second through CloudFront.
waiting for the first poll
CloudFront hittrip to the app