It is often reasonable to remove CloudFront and use API Gateway instead to simplify the infrastructure. Importantly, without CloudFront, we can remove the ugly workaround of circular dependencies when using cloudfront domain (see #47).
The drawbacks of using API Gateway are the following:
- response streaming is not usable at all
- 30 second timeout for response (default quota)
- No cache for static files
In the simple and small systems like prototypes, it often works well though.