not able to server multiple s3 buckets on a single cloudfront distribution

Your files in the second bucket must start with a top level prefix nature/ or else the won’t resolve. CF doesn’t remove the path matched when routing, it is still there. If you can’t move the objects in the second bucket into a nature/ prefix, then you need a CF Function to remove this part of the path from the object key before forwarding the request to the S3 origin.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top