cfn-python-cloudfront-apigw.patterns.advancelocal.dev
cfn-python-cloudfront-apigw
A plain Python handler on Lambda from plain CloudFormation, no Zappa. CloudFront serves the page from S3 and caches /api/time from API Gateway for 5 seconds.
App
- Python handler
Runs on
- CloudFront
- origin access control
- response headers policy
- S3
- API Gateway, regional
- Lambda, Python, deployed with CloudFormation
Foundation
- inf-baseline
- Wiz scanning
- Scheduled deploys and checks
Cache, live
Polling /api/time every second through CloudFront.
waiting for the first poll
CloudFront hittrip to the app