Mavrick Laakso 2/12/2023

Fixing 404/403 Errors in Cloudfront and S3

Read Original

This article details a solution for resolving incorrect 403 (Access Denied) errors from an S3 bucket behind Cloudfront, which should return 404 (Not Found) for missing content. It explores and rejects solutions like S3 routing rules or Cloudfront functions, instead providing a method to modify the CloudFront Origin Access Identity policy to grant ListBucket permissions, preserving security and correct error handling.

Fixing 404/403 Errors in Cloudfront and S3

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week