I created a Cloudfront distribution with CNAME images.domain.com with SSL, and I have 2 S3 buckets: one for user downloads, one for product images. By default, a bucket is used to download
I would like to use the same CloudFront for both buckets
So, I added 2 buckets as sources and created a โBehaviorโ using the path /products/* , using my bucket as a source
My "Behaviors":
- / products / * to: bucket of products (priority = 0)
- Default (*) to: uploads bucket (priority = 1)
When I go to images.domain.com/products/78/34.jpg , I get AccessDenied
The file "78 / 34.jpg" is present in my product bucket
Files from another bucket work fine (i.e. images.domain.com/upload67.jpg with upload67.jpg in the download bucket)
source share