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.

link|improve this question
feedback

2 Answers

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.

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

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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