You can make your S3 data buckets available through Fastly. The process is very simple.
Once you are logged in click on Configure. Then click on New Service. You will be
presented with a dialog like this one.
Fill out as follows
Now that the service is created you will need to set the Default Host to the name of yourbucket.s3.amazonaws.com e.g.
When you're done, just click Deploy. Your service should be active within few seconds. By default we create DNS mapping called yourdomain.global.prod.fastly.net e.g. in above case that will be cdn.domain.com.global.prod.fastly.net. Please test and if you are satisfied with the results create a DNS alias from the domain name you specified e.g. cdn.domain.com to cdn.domain.com.global.prod.fastly.net.
By default our service will cache any content that doesn't have explicitly set Cache headers for 1 hour. To verify whether you are sending any cache header use the curl command e.g.
$ curl -I opscode-full-stack.s3.amazonaws.com
HTTP/1.1 200 OK
x-amz-id-2: ZpzRp7IWc6MJ8NtDEFGH12QBdk2CM1+RzVOngQbhMp2f2ZyalkFsZd4qPaLMkSlh
x-amz-request-id: ABV5032583242618
Date: Fri, 18 Mar 2012 17:15:38 GMT
Content-Type: application/xml
Transfer-Encoding: chunked
Server: AmazonS3
In this example no cache control headers are set so default TTL will be applied.
If you need more control over how different types of assets are cached e.g. Javascript files, images, media check out our Amazon S3 configuration in Cache Control tutorial.