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.


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

  • 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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