1 Comment
I was in the same situation that I wanted CloudFront to return an object in a directory under a bucket and I found a simpler way to do that eventually. Let me share it here.
Another Resolution
You can set both Origin Path mentioning a directory including the object you want to get in a bucket and Default Root Object referring the object itself. This worked well for my case. Give it a try.
replied a month ago
Relevant content
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 6 months ago