2

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.

Diego
  • 23
  • 2

2 Answers2

1

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

growse
  • 8,020
  • 13
  • 74
  • 115
0

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.