AWS CloudFront 403 AccessDenied Serving Private S3 Bucket

S3 bucket policy missing `cloudfront.amazonaws.com` OAC read grant or `kms:Decrypt` for SSE-KMS.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: AWS CloudFront 403 AccessDenied Serving Private S3 Bucket Platform: Cloud
Common Root Causes:
  • S3 bucket policy missing `cloudfront.amazonaws.com` OAC read grant or `kms:Decrypt` for SSE-KMS.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Attach the generated OAC bucket policy and grant CloudFront KMS decrypt if bucket uses CMK.
Safe Diagnostic Command:
Check S3 bucket policy and CloudFront Origin Access Control
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

S3 bucket policy missing `cloudfront.amazonaws.com` OAC read grant or `kms:Decrypt` for SSE-KMS. Recommended diagnostic: `Check S3 bucket policy and CloudFront Origin Access Control`. Remediation: Attach the generated OAC bucket policy and grant CloudFront KMS decrypt if bucket uses CMK.

Worked Examples

  • Run `Check S3 bucket policy and CloudFront Origin Access Control` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-aws-cloudfront-403-s3-oac · Independently verified: 2026-11-25

Related Resources