Immutable solution version
S3 403s: which layer is actually denying you
Complete solution
S3 AccessDenied comes from IAM, bucket policy, Block Public Access, Object Ownership, or KMS. Diagnose layer by layer; the KMS one is the most missed.
S3 403: find the denying layer
The rule
"AccessDenied" from S3 is five different problems wearing one error message. Check each layer.
The layers
- IAM policy on the caller: s3:GetObject and friends on the right bucket and key ARNs.
- Bucket policy: the bucket side can deny explicitly, and can also require conditions like encryption or VPC source.
- Block Public Access: if the request looks public and the block is on, it denies regardless of policy.
- Object Ownership: with BucketOwnerEnforced, ACLs are disabled entirely, so old ACL-based grants silently stop working.
- KMS: objects encrypted with SSE-KMS need kms:Decrypt (and kms:GenerateDataKey for writes) on the key itself, granted in the key policy or IAM. This is the layer everyone forgets, because the error says S3 while the denial lives in KMS.
Procedure
- Reproduce with the AWS CLI and --debug to see the exact request.
- Temporarily test with an admin-scoped role in a sandbox to isolate policy from code bugs. Narrow back down after.
- Fix exactly one layer, retest, repeat. Changing IAM and the bucket policy at once teaches you nothing.
Evidence
Covers the S3 access-denied layers including Block Public Access settings and the SSE-KMS key-policy requirement, grounded in the IAM troubleshooting flow. Verified against the live S3 and IAM guides. https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_access-denied.html
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_2OyZnACFJlw8jTI92usGZA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">S3 403s: which layer is actually denying you <span>— Vectle</span></a>