How to Fix CloudFront S3 Access Denied Errors

Why do I get a 403 access denied error when using an Amazon S3 origin?
CloudFront returns a 403 access denied error when the service lacks permission to retrieve objects from your Amazon S3 origin. This happens when an requested object simply does not exist in a private bucket. By design, AWS returns a 403 instead of a 404 for missing objects in private buckets. This happens when the requester lacks s3:ListBucket permission, to prevent unauthorized enumeration of your data. [docs.aws.amazon.com]

According to [oneuptime.com](https://oneuptime.com/blog/post/2026-02-12-fix-cloudfront-403-access-denied-s3-origin/view), this error usually stems from five distinct root causes. These stem along the access chain between the edge location and your storage bucket. If you recently locked down your bucket or switched from public access to private access, that causes issues. Your distribution will immediately block requests that lack proper authentication.
How to debug S3 access denied errors with Origin Access Control
Origin Access Control (OAC) is the current AWS-recommended method for securing private S3 origins. This method replaces the older Origin Access Identity (OAI) system. OAC uses SigV4 signing to authenticate requests between CloudFront and S3. Protocol rules ensure that users cannot access your storage bucket directly via its S3 URL.
| Access Method | Authentication Type | Best For |
|---|---|---|
| Origin Access Control (OAC) | SigV4 Signing | All modern private S3 origins requiring high security and SSE-KMS support |
| Origin Access Identity (OAI) | Legacy Token | Legacy distributions created before OAC availability |
| Public S3 Website Endpoint | None (Public Read) | Public static websites where direct S3 access is acceptable |
If you use OAC, your setup suits modern secured architectures. If you still rely on OAI or public endpoints for private data, actions expose your bucket. Misconfigurations or security warnings frequently occur then.
Steps to resolve CloudFront S3 access denied
Follow this sequence to correct your permissions and restore content delivery:

- Open the Amazon CloudFront console, select your distribution, and choose the Origins tab to check your origin settings.
- Verify that your origin domain points to the correct S3 REST API endpoint rather than an S3 website endpoint.
- Check that Origin Access Control is enabled and assigned to the correct S3 origin.
- Copy the automatically generated S3 bucket policy provided in the OAC configuration screen.
- Paste that policy into your S3 bucket’s access policy settings via the Amazon S3 console to grant CloudFront read permissions.
- Create a cache invalidation for
/*on your distribution to clear existing cached 403 error responses.
When you complete these steps successfully, refreshing your CloudFront domain URL in the browser displays your website files. Doing this shows your files instead of the XML access denied message.
What to do if the error persists
If you configured OAC and updated your bucket policy, but still see access denied messages, check for explicit Deny statements in your S3 bucket policy or IAM roles, because explicit denials override any allow rules. Also, verify that your object keys match exact casing, since S3 filenames are case-sensitive. If your bucket uses customer-managed keys for Server-Side Encryption with AWS Key Management Service (SSE-KMS), ensure your KMS key policy explicitly grants CloudFront permission to perform kms:Decrypt actions.

Related guides
Frequently asked questions
What does access denied mean in AWS S3?
Access denied message means that the IAM identity, service, or unauthenticated user attempting the request lacks required permissions. They cannot view or modify the targeted S3 bucket and its objects.
Can CloudFront be used with S3?
Yes, Amazon CloudFront integrates natively with Amazon S3 origins to cache and deliver your content globally. These origins achieve low latency while keeping your storage bucket private.
Why is Amazon CloudFront blocking me from websites?
CloudFront usually blocks requests when origin security settings misalign or when viewer restrictions trigger geo-blocking. Alternatively, AWS WAF rules may flag your IP address as suspicious.