amazon-cloudfront
Getting started with secure AWS CloudFront streaming with Python
You’re right, it takes a lot of API work to get this set up. I hope they get it in the AWS Console soon! UPDATE: I have submitted this code to boto – as of boto v2.1 (released 2011-10-27) this gets much easier. For boto < 2.1, use the instructions here. For boto 2.1 or … Read more
Supporting HTTPS URL redirection with a single CloudFront distribution
You’re thinking too narrowly — there’s nothing wrong with this setup. The solution would be trivial if Amazon offered any form of URL rewriting They do — the empty bucket. S3 has absolutely no support for HTTPS. Not for web site hosted buckets, no… but CloudFront does. CloudFront is not just a CDN. It’s also … Read more
AWS Cloudfront + Load Balancer, url changes from main domain to load balancer subdomain [closed]
This behavior likely results from the fact that by default CloudFront sets the Host: HTTP request header to the origin hostname, in this case elb.example.com. The application then presumably generates links based on that hostname. If, instead, you configure CloudFront to whitelist that header for forwarding to the origin, the Host header sent by the … Read more
How do you add CloudFront in front of API Gateway
Until API Gateway (APIG) supports edge caching via its internal use of CloudFront (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 … Read more