S3 403 Access Denied: A Step-by-Step Checklist

Most S3 403 errors come from a missing permission, a wrong resource ARN, an explicit deny, or a KMS key you can't use.

S3 returns 403 Access Denied whenever anything in the permission chain says no. Work through these checks in order. Most problems show up in the first three.

1. Who is actually making the request?

Terminal
aws sts get-caller-identity

Code often runs as a different identity than you think: a Lambda execution role, an EC2 instance role, or a different CLI profile. Check that identity's permissions, not your own.

2. Does the identity's IAM policy allow the action?

You need the exact action: s3:GetObject to read, s3:PutObject to write, s3:ListBucket to list.

3. Is the resource ARN right? (The #1 mistake)

Bucket-level and object-level actions use different ARNs:

JSON
{
  "Effect": "Allow",
  "Action": "s3:ListBucket",
  "Resource": "arn:aws:s3:::my-bucket"
},
{
  "Effect": "Allow",
  "Action": ["s3:GetObject", "s3:PutObject"],
  "Resource": "arn:aws:s3:::my-bucket/*"
}

ListBucket needs the bucket ARN. GetObject and PutObject need bucket/*. Mixing them up is the most common cause of 403s.

4. Does the object actually exist?

Watch out

If you don't have s3:ListBucket, S3 returns 403 instead of 404 for a key that doesn't exist, to avoid revealing what's in the bucket. Check the key's spelling and case, and remember that keys from S3 events are URL-encoded.

5. Is something explicitly denying it?

An explicit Deny anywhere wins. Check the bucket policy, permission boundaries, Service Control Policies (if you're in AWS Organizations), and any VPC endpoint policy if the request goes through an endpoint.

6. Is the object encrypted with a KMS key?

For SSE-KMS objects, the caller also needs kms:Decrypt (to read) or kms:GenerateDataKey (to write) on that key, and the key policy must allow it.

7. Using a presigned URL or public access?

  • Presigned URL: it may have expired, or the identity that signed it lacks permission.
  • Anonymous access: Block Public Access overrides everything. Prefer presigned URLs or CloudFront with Origin Access Control instead of public buckets.
Tip

The IAM policy simulator and CloudTrail event history show exactly which identity made a call and why it was denied.

Learn more: Keeping your S3 data private, Reading & writing IAM policies, and Presigned URLs with Python.

Key takeaways

  • Confirm the calling identity with `aws sts get-caller-identity`.
  • ListBucket uses the bucket ARN, while GetObject and PutObject use bucket/*.
  • Without ListBucket, missing keys return 403 instead of 404.

Learn the details