Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Assume that I have created a Cloudfront distribution for a S3 bucket.

Does it matter if you use the aws uri such as bucket-name.s3.amazonaws.com verses using d2a3tewy8xuw6.cloudfront.net? Are there any issues using amazonaws.com uri for Cloudfront?

I'm currently using a cname in-front of my bucket-name.s3.amazonaws.com uri so the change it pretty easy.

share|improve this question

1 Answer 1

It does matter. Using bucket-name.s3.amazonaws.com means you are referencing the S3 storage direct and not CloudFront. The requests will be served from wherever the S3 servers are (America, I assume) instead of an edge location closer to the user. Obviously this means you don't get the speed benefits; I believe S3 bandwidth is also more expensive than CF.

You can use a CNAME in front of the S3 bucket if you like, but again that's not using CloudFront so if you want to use it the CNAME should point to d2a3tewy8xuw6.cloudfront.net instead.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.