// troubleshooting guide · aws cloudfront

CloudFront 403 Access Denied With S3 Origin

Status
Workaround available
platforms:
AWS Console, AWS CLI, Terraform, CloudFormation
updated:
November 17, 2026
reports:
6
Method
how we research
Share

RUNBOOK · aws-cloudfront/403-access-denied-s36 FIXES

// quick answer

CloudFront returns 403 AccessDenied when S3 refuses its request: usually a missing OAC bucket policy, the S3 website endpoint used with OAC, no default root object, or a file that doesn't exist. Fix the bucket policy for your distribution ARN and use the S3 REST endpoint.

Most likely fix: Use OAC with the S3 REST endpoint

How to fix it

// try these in order, the most common fix is first

  1. FIX 1Use OAC with the S3 REST endpoint

    1. 01Open CloudFront > Distributions > your distribution > Origins > Edit
    2. 02Pick the bucket from the list (bucket.s3.region.amazonaws.com), not the s3-website endpoint
    3. 03Under Origin access choose Origin access control settings and create or select an OAC
    4. 04Save changes
    Did this fix it?
  2. FIX 2Copy the bucket policy CloudFront generates

    1. 01After saving the origin, click Copy policy in the yellow banner
    2. 02Open S3 > your bucket > Permissions > Bucket policy > Edit
    3. 03Paste the policy so it allows s3:GetObject with Condition AWS:SourceArn set to your distribution ARN
    4. 04Keep Block Public Access on; OAC doesn't need public access
    Did this fix it?
  3. FIX 3Set the default root object

    1. 01Open the distribution > General > Settings > Edit
    2. 02Enter index.html in Default root object
    3. 03Save and wait for the distribution to finish deploying
    Did this fix it?
  4. FIX 4Check whether the file exists

    1. 01Run aws s3 ls s3://your-bucket/path/to/file
    2. 02Check the key's exact case and prefix (S3 keys are case-sensitive)
    3. 03If you want real 404s, add s3:ListBucket for CloudFront to the bucket policy
    Did this fix it?
  5. FIX 5Allow KMS decryption for encrypted objects

    1. 01If objects use SSE-KMS, open the KMS key policy
    2. 02Allow kms:Decrypt for the cloudfront.amazonaws.com service principal with your distribution ARN as source
    3. 03Retry the request
    Did this fix it?
  6. FIX 6Work out who returned the 403

    1. 01Run curl -I https://your-domain/file and look at x-cache and Server headers
    2. 02If the request appears in S3 server access logs, S3 denied it: fix the bucket or KMS policy
    3. 03If it never reaches S3, look at WAF rules, geo restriction or signed URL settings on the distribution
    Did this fix it?

Symptoms

Browser shows an XML page with <Code>AccessDenied</Code>, or a 403 on the root URL while /index.html works, or 403 for some files only.

Why it happens

  • C-01Bucket policy doesn't grant s3:GetObject to cloudfront.amazonaws.com for your distribution ARN
  • C-02Origin is the S3 static website endpoint, which can't use OAC or OAI
  • C-03Default root object (index.html) not set, so requests to / fail
  • C-04The object doesn't exist and CloudFront has no s3:ListBucket, so S3 returns 403 instead of 404
  • C-05Explicit deny, IP/VPC conditions or SSE-KMS encryption without KMS permissions for CloudFront
  • C-06Objects uploaded by another account are not owned by the bucket owner

// this guide also covers

  • cloudfront 403 access denied s3
  • cloudfront accessdenied
  • cloudfront oac 403
  • s3 cloudfront 403 forbidden

Still not working?

If AWS CloudFront keeps failing, you're not alone. See every AWS CloudFront problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us

Watch AWS CloudFront Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

Other AWS CloudFront errors

All 12 AWS CloudFront errors and fixes →