Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 is not a great solution so I was wondering if you can think of any practical solution for this.

share|improve this question
up vote 1 down vote accepted

You can do this by simply denying the Cloudfront user read access to the files in the bucket that you want to keep private.

share|improve this answer
This is basically what I ended up doing. – Diego May 26 '11 at 16:15

Growse is right, if you did not set a policy for that bucket. However, from an organizational viewpoint, it is recommended to keep private and public videos in a separate bucket.

share|improve this answer

Your Answer


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.