How do you add CloudFront in front of API Gateway
API Gateway (APIG), while it uses CloudFront (CF) it does not support CDN edge caching. When I configured a CF distribution to use APIG as the custom origin, I get a permission denied error. How do I configure CF to fix this? Until API Gateway (APIG) supports edge caching via its internal use of CloudFormation (CF), I have come up with a workaround. You can indeed put CF dist in front of APIG, the trick is to force HTTPS only "Viewer Protocol Policy" AND to NOT forward the HOST header because APIG needs SNI. I setup my CF "Default Cache Behavior Settings" to not forward any headers, and forced