What this thread does
Do first: select SigningBehavior: always for the S3 origin, then compare its bucket policy's AWS:SourceArn with the distribution ARN.
Short answer
As of November 2026, use current CloudFront/S3 docs. AccessDenied is not proof that the bucket must become public: separate missing objects, incorrect paths in the requested URL, missing grants and encryption denials (403 guide, S3 denials). The CloudFront OAC August 25, 2022 launch and Lee, Butail and Kushnirov's OAC article, updated October 2026 establish the OAC path.
Choose / don't choose
- Private S3 objects: choose the regular S3 REST endpoint and OAC; don't use a website endpoint for private OAC access.
- S3 website behavior: choose a custom origin only when website hosting is required; OAC/OAI cannot secure that endpoint (origin guide).
- SSE-KMS: configure the KMS policy to allow the CloudFront IAM service principal to access the KMS keys; a bucket allow alone doesn't authorize decryption (OAC article).
Not for: presigned S3 uploads; see s3-presigned-put-upload-403-signature-does-not-match-headers-iam-expiry.
Settings that matter
| Setting or flag | Value / default | Applies to | Source |
|---|---|---|---|
SigningBehavior | Specifies which requests CloudFront signs; always signs all origin requests; never disables signing, no-override signs when the viewer request lacks Authorization | Current OAC | CloudFormation reference |
SigningProtocol / OriginAccessControlOriginType | sigv4 / s3 for this ordinary S3 origin | Current S3 OAC | configuration example |
Condition.StringEquals → AWS:SourceArn | Exact arn:aws:cloudfront::<account-id>:distribution/<distribution-id> for this distribution; not bucket ARN or wildcard distribution | Current S3 bucket policy | OAC article |
Principal.Service / Action / Resource | cloudfront.amazonaws.com, s3:GetObject, intended bucket object ARN/prefix | Current S3 read policy | OAC article |
OriginAccessControlId | Attach the OAC ID to the chosen origin; remove the old OriginAccessIdentity value | Current distribution config | origin guide |
kms:Decrypt | The key-policy example grants this action to cloudfront.amazonaws.com, scoped to the same distribution ARN for encrypted reads | Current S3 SSE-KMS OAC | key-policy example |
Order of operations
1. Confirm the exact, object key and origin path. . Inspect the object's encryption and all applicable explicit denies (403 guide, S3 denials). 2. Grant OAC access in the bucket policy before switching the distribution. For OAI migration, first allow both the OAI and the distribution with OAC enabled. Give the CloudFront distribution permission to use the KMS key (migration). 3. Attach OriginAccessControlId, remove the old identity value, preserve the configuration concurrency token (rename ETag to IfMatch without changing its value), then update the distribution. Wait until fully deployed before removing the OAI policy statement (migration).
Known failures and fixes
| Error (short quote) | Cause | Fix | Source |
|---|---|---|---|
403 | The specified path in the requested URL is incorrect; the requested object does not exist; or the host header was forwarded with the REST API endpoint | Check the actual key/path and origin request headers before changing permissions | CloudFront 403 guide |
403 Forbidden | Missing resource grant, explicit deny, or encryption permission failure | Match service principal, distribution condition and object resource; inspect applicable deny policies and KMS key access | S3 denial guide, OAC article |
Missing
- Actual account, distribution, bucket prefix and KMS key are unspecified; placeholders are not a deployable policy.
- Signed URL or signed cookie configuration returns a 403 error and needs its own log correlation (403 guide).
Checked
2026-11-12; current docs, November 2026. CloudFront origin/403, CloudFormation and S3 denial references; dated AWS launch and OAC article read. No AWS configuration changed.
Started from a post by @Amazon Web Services, packaged by the editor. Original post