Amazon CloudFront is a content delivery network (CDN) offered by Amazon Web Services.

learn more… | top users | synonyms (1)

18
votes
2answers
16k views

Amazon Cloudfront with S3. Access Denied

We're trying to distribute out S3 buckets via Cloudfront but for some reason the only response is an AccessDenied XML document like the following: <Error> <Code>AccessDenied</Code&...
13
votes
3answers
3k views

How can I use https with AWS Cloudfront without paying $600 to upload my cert?

I can host a dynamic website through Amazon CloudFront because they have CNAME Wildcard Support. However, some pages of my Site use HTTPS. Amazon have some documentation about how to associate your ...
10
votes
1answer
10k views

Setting Access-Control-Allow-Origin on Cloudfront

I am having problems serving static assets to Firefox using AWS Cloudfront. Chrome works perfect, but Firefox is returning a CORS error. If I execute curl , I get: HTTP/1.1 200 OK Content-Type: ...
7
votes
3answers
8k views

Forcing CloudFront to pass-through the latest HTML file from S3

Background I'm hosting a static site on S3, with CloudFront over the top. The issue I have is with my HTML files. According to CloudFront's FAQ: Amazon CloudFront uses these cache control ...
7
votes
4answers
6k views

Should AWS CloudFront *increase* load time for infrequently accessed files?

I am new to CDNs and experimenting with CloudFront. I have set everything up and all appears to be working fine. I can create a static image on a page and access it though my CloudFront distribution. ...
6
votes
3answers
4k views

Using EC2 as a Cloudfront Origin Server

Amazon has recently added the ability to use any server as an origin server for Cloudfront, removing the original S3 only restriction. My question is- how do I set this up? The AWS web-gui seems to ...
5
votes
2answers
9k views

Why S3 website redirect location is not followed by CloudFront?

I have a website hosted on Amazon S3. It is the new version of an old website hosted on WordPress. I have set up some files with the metadata Website Redirect Locationto handle old location and ...
5
votes
2answers
2k views

Webstats for large Amazon S3/Cloudfront logs?

I'm trying to find a way to parse our Amazon S3 access logs to get some webstats. I've been trying to use AWStats 7, but I got to the point of where after day 9 of a given month it can't process any ...
5
votes
1answer
409 views

Blue/Green deployments with CloudFront

I'm looking for a way to do Blue/Green deployments with CloudFront. Does anyone have a good solution for moving from one CloudFront distribution to another or does everyone really just create their ...
5
votes
0answers
242 views

What's the best way to simulate being behind China's Great Firewall? [closed]

We're having issues with an iOS app of ours that uses in-app purchase to unlock downloadable content - but it seems only from China. We see many negative reviews from China for this reason. Our in ...
4
votes
2answers
450 views

Does Amazon CloudFront charge for storage? [closed]

I've been reviewing the features and prices of Amazon S3 and Amazon CloudFront as well as similar services offered by other providers. One thing I can't understand is why Amazon CloudFront pricing ...
4
votes
1answer
138 views

Is Amazon s3 required if am using Cloudfront for files

I am planning to host a website in Amazon Ec2 instant. I got some basics from the docs. But I have few confusions. If am using cloudfront for CDN, do i really need to server files from s3? The site ...
4
votes
1answer
1k views

AWS Cloudfront multiple origins - how can we fallback to 2nd origin if not found in the 1st

We're trying to set up a Cloudfront distribution where the default origin is S3, but if the content is not found on S3, we want it to fetch it from an EC2 instance. Can we setup these multiple ...
4
votes
0answers
2k views

Amazon S3 + Cloudfront VS Rackspace CloudFiles [closed]

I know this question came up lot of time on the internet , But I couldn't find any latest updates on this . So I gathered the information what I found and putting here and have few questions on it . ...
4
votes
2answers
2k views

How to restrict access just to cloudfront from a custom origin server?

if i understood well, in order to create a custom origin distribution, I need to make public those files on my custom origin server. In my case, that will be put those files into a public dir of an ...
3
votes
2answers
2k views

Redirect some URL requests to CloudFront and the rest direct to the normal server?

Say I have two types of URL requests that must be handled by my REST API: http://query.restapi.com/image.png?apikey=abc123 http://query.restapi.com/2.0/<apiKey>/resource.json?from=umi....
3
votes
1answer
4k views

I get a 403 when requesting a JS file from CloudFront

This is new to me so please excuse me if I have no idea what I'm talking about (: I'm trying to set up my own CDN with CloudFront and S3 through a subdomain by adding a CNAME to that subdomain to ...
3
votes
1answer
1k views

S3 CORS through CloudFront not working in Firefox

I am using S3 CORS for serving fonts. If S3 domain name is used for serving fonts, it works in Firefox, but when CloudFront is used, it doesn't. Works with Google Chrome. My CORS configuration on S3 ...
3
votes
1answer
781 views

Is it possible to get a breakdown of the bandwidth usage by file in AWS CloudFront?

My sites traffic is finally starting to peak, and I am a heavy user of AWS CloudFront. I'd like to optimize our bandwidth, but I don't see anyway of getting a detailed breakdown of which files are ...
3
votes
2answers
3k views

CloudFront with Custom Origin and ELB

We are using CloudFront for our static assets but also wanted to allow for Gzip. We set up a new distribution with a custom origin pointing back to our application servers which are behind a elastic ...
3
votes
1answer
1k views

How can I limit CloudFront downloads

I'm looking to use Amazon's CloudFront to host some content in the near future. Currently, I'm keeping it very simple and I'm just uploading my content to S3 and then making a distribution available ...
3
votes
1answer
39 views

Amazon CloudFront CORS specific delay

I am experiencing a delay between the serving of CORS requests but direct requests are served fine. I am using this to distribute media streams via HTTP so it is very important to reduce the startup ...
3
votes
1answer
154 views

Cache-Control not working in AWS S3 object Metadata

Follow-up to my original question: No Cache-Control Header for files from AWS CloudFront with S3 Origin Im serving up static files using AWS CloudFront with AWS S3 as the origin. I tried to set the ...
3
votes
2answers
3k views

CloudFront S3 Access denied

I have one account with privilege to manage S3 (S3_User), and another one to manage Cloud Front (Cloud_Front_User). Now, I've created a bucket "bucketname" with S3_User and a distribution with ...
3
votes
2answers
473 views

Move static files from EC2 to S3 (or cloudfront) without updating links

Right now, I have a site entirely on an EC2 instance including all static files like css, js, and images. I'm wondering about the best way to handle moving them. For example, in my <HEAD> on a ...
3
votes
1answer
2k views

Setting up CloudFront CDN on a cookieless root domain

I have recently set up an AWS S3 bucket for my site's static content, along w/ a CloudFront distribution for my CDN. I have this working using a sub-domain. However, after running YSlow, I realized ...
3
votes
1answer
737 views

Can TLSv1 / SNI be blocked by the network? (routers, firewalls, etc)

Our web site serves static content through a content delivery network (AWS CloudFront) which is configured to respond to a number of CNAMEs and use our SSL wildcard certificate for these hostnames. ...
3
votes
0answers
428 views

Strict-Transport-Security on CloudFront with S3 origin?

My company's site has a static homepage for speed and cost reasons. We use S3 as the origin for CloudFront. Now, we would like to declare Strict-Transport-Security for the entire domain, but S3 seems ...
3
votes
2answers
3k views

Amazon Cloudfront with S3 Redirect

I'm trying to do something that should be relatively straight-forward - I want to setup a few domains and subdomains to redirect to the core domain for our site, but I want to put the redirects out on ...
2
votes
1answer
2k views

Is Cloudfront inherently faster than S3 (without considering distance)?

Just a simple question but I can't find a definitive answer online. Of course cloudfront is good for serving content globally, but is the infrastructure there inherently different from s3, so tha even ...
2
votes
2answers
744 views

CloudFront - Users requests static files non-stop to make your bill high?

I had this weird wondering once. If I am using CloudFront as my CDN, I pay per requests made on my static files. So here comes the wondering. Can one keep requesting the same file in a non-stop ...
2
votes
2answers
2k views

Set TTL for CloudFront files to 1 year

I know we can set the expires header to Amazon S3, but how do I set it for a cloudfront file ? I've read that we can set the TTL from 24hrs to 1hr, but I want to set it for 1 year.
2
votes
2answers
294 views

Amazon CloudFrount on EC2

I know that i can mount s3 buckets with s3fs on EC2 instance. So i have next question can i somehow mount Amazon Cloud Front (my S3 buckets files) in EC2 instance?
2
votes
2answers
45 views

AWS CloudFront Limit Origin Access

I am averaging 12,000 page views per day, but my cloudfront is getting around 6 million requests for images and fonts every day. I suppose it is possible that all of these requests are coming from my ...
2
votes
1answer
2k views

Static IP for cloudfront

Is there any way to bind static IP to my cloudfront distribution? I'm wondering if VPC can make that work. I need static IP just to eliminate the problem of allowing in my firewall everytime AWS ...
2
votes
2answers
835 views

How to set cache control headers

How do I go about setting the cache control headers for specific files on my web server? I'm running a LAMP environment. I don't want to set the cache control sitewide, just for a few files. I am ...
2
votes
2answers
592 views

Best way to implement Amazon CloudFront for established website

Some of you may have a solution for this, and I need to hear it. Basically, you have a website, a lot of categories ( games, blog etc ). The idea would be to use Amazon CDN for images, flv's, ...
2
votes
1answer
339 views

Can you have private URLs in Amazon's CloudFront?

In Amazon's S3 storage system you can have sort of private URLs using a special query string and expiring the link after a while. Is such a private system possible using Amazon's CloudFront, which is ...
2
votes
1answer
371 views

CloudFront Distribution for Origins in Multiple Regions

Is there a way to point CloudFront to different origin servers based on location? We currently use Route53 latency-based routing to direct traffic to east or west region elastic load balancers. ...
2
votes
1answer
733 views

Max number of viewers for different types of Flash Media Server instances

I'm looking on Adobe Flash Media Server webiste, under Instance Types For each type of instance, it lists the "Simultaneous connections". If the instance I want lists "1000 RTMFP", does that mean ...
2
votes
1answer
732 views

S3 to cloudfront edge location vs cloudfront to end user transfer ratio

We host videos in amazon S3 and use cloudfront to deliver them. Here is last months numbers: 4,2 TB total traffic from cloudfront to end user. 4 TB of this is in europe, the rest mainly in the US. ...
2
votes
1answer
729 views

Preload/Prime Amazon Cloud Front CDN before move.

I am changing CDNs and I would like to preload some content to AWS Cloud Front so that my origin server is not hammered during that transition. Any tips?
2
votes
2answers
288 views

Can you have public and private files on the same Cloudfront distribution?

We have files serving through the Cloudfront CDN and we need to have some files to be public and some others to be private. One option would be to have two different buckets and distributions but it ...
2
votes
0answers
237 views

Cherokee force gzip compression for HTTP/1.0

I am using CloudFront with a Cherokee origin server for static files. Cherokee serves gzipped content for direct browser requests without any problem. But when CloudFront requests content, Cherokee ...
2
votes
1answer
1k views

Using Amazon s3 and Cloudfront what is the best way to set expires headers and cache expiration

We have a huge bucket of photos on s3. We add and remove from this daily but it currently has millions of photos that we don't want to rewrite or update if possible. We have not set any expires ...
2
votes
1answer
569 views

Can you setup a whitelist for allowed files in Amazon CloudFront

I'm using CloudFront as a CDN, and my website as an origin for pulls. Basically, I have cdn.mydomain.com pointing over to Cloudfront, and Cloudfront pulls any requests from www.mydomain.com. However,...
2
votes
2answers
1k views

Do I need a ssl certificate if just pointing my domain to Cloudfront?

I have a website running on a domain (e.g site.com). I have an additional domain(e.g sitecdn.com) which basically points to Amazon Cloudfront for delivery. Amazon Cloudfront in turn basically fetches ...
1
vote
2answers
198 views

How to show a “linked from site X” placeholder instead of actual photo?

I’m hosting a bunch of photos on Amazon S3 and also running Amazon CloudFront for them. Also, I’m running a custom domain name. Now, in case someone tries to embed the image to another website, I’d ...
1
vote
2answers
522 views

Do I really need Amazon CloudFront and Co.?

I would like to ask you your advice. We are ruuning a dynamics website and have 5000 unique visitor everyday. Currently we run the site on Single VPS server with 512 MB RAM , 20 GB HDD, 500 GB ...
1
vote
2answers
1k views

How frequently do Amazon CloudFront objects expire?

The answer I can find in the FAQ is as follows An object stays in an edge location until it expires. After the object expires, CloudFront must go back to the origin server the next time that ...