AWS
S3
Access Control List
Error Handling
Cloud Storage

Error AccessControlListNotSupported when trying to create a bucket ACL in AWS

System Design practice on Codemia

Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.

Practice system design

Introduction

AccessControlListNotSupported on S3 usually means you are trying to apply an ACL to a bucket or object in a configuration where ACLs have effectively been turned off. The most common cause is Object Ownership being set to BucketOwnerEnforced, which disables ACL-based access control. The fix is usually to stop using ACLs and move the permission model to bucket policies, IAM, or a different Object Ownership setting if ACLs are still truly required.

Why This Error Happens

Historically, S3 supported access control through ACLs and through bucket policies. Modern AWS guidance strongly prefers policies. When a bucket uses Object Ownership with BucketOwnerEnforced, ACLs are disabled and ownership is simplified so the bucket owner owns all objects.

In that mode, attempts to create or modify ACLs fail with AccessControlListNotSupported.

That is why the error is often not about a missing permission to write the ACL. It is about the bucket configuration saying ACLs are not part of the access model at all.

A Typical Failing Example

For example, this kind of Boto3 code can fail when ACLs are disabled:

python
1import boto3
2
3s3 = boto3.client("s3")
4
5s3.put_bucket_acl(
6    Bucket="my-bucket",
7    ACL="private",
8)

The request shape is valid, but the bucket's ownership mode rejects the ACL operation.

The Preferred Fix: Stop Using ACLs

If the bucket is already using BucketOwnerEnforced, the usual fix is to remove ACL logic from your code and express access through bucket policy or IAM instead.

For example, a bucket policy can allow reads to a specific principal or account without any ACL calls at all.

json
1{
2  "Version": "2012-10-17",
3  "Statement": [
4    {
5      "Effect": "Allow",
6      "Principal": {
7        "AWS": "arn:aws:iam::123456789012:role/app-role"
8      },
9      "Action": ["s3:GetObject"],
10      "Resource": "arn:aws:s3:::my-bucket/*"
11    }
12  ]
13}

This is the model AWS wants most modern S3 applications to use.

If You Really Need ACLs

Sometimes you are integrating with an older workflow that still depends on ACLs. In that case, you need to change the bucket's Object Ownership configuration away from BucketOwnerEnforced.

That is an architectural decision, not just a code fix. If you change ownership behavior to re-enable ACL support, make sure the team understands the consequences for object ownership and permission management.

In other words, do not toggle that setting casually just to make one old SDK call stop failing.

Bucket Creation Workflows

This error often appears in infrastructure code that still passes canned ACL arguments automatically during bucket creation. The fix there is usually to remove the ACL option entirely.

For example, in infrastructure code or SDK calls, avoid patterns that force ACL configuration unless you know the bucket is meant to use ACLs.

That cleanup is often all that is needed after migrating to the newer S3 ownership model.

Diagnose Before Changing Permissions

A good troubleshooting sequence is:

  1. inspect the bucket's Object Ownership setting
  2. verify whether the code path is calling put_bucket_acl or setting object ACLs implicitly
  3. decide whether ACLs are truly required or just leftover legacy behavior
  4. move access control into IAM and bucket policy if possible

This avoids the common mistake of trying random permission tweaks when the problem is really a storage-ownership model mismatch.

Common Pitfalls

  • Treating AccessControlListNotSupported as if it were a missing IAM permission instead of an ACL-disabled bucket configuration.
  • Keeping legacy ACL calls in code after migrating the bucket to BucketOwnerEnforced.
  • Re-enabling ACL support without understanding why the bucket ownership model was changed in the first place.
  • Mixing ACL-based and policy-based access models inconsistently across the same application.
  • Assuming bucket creation defaults are harmless when infrastructure tooling is silently adding canned ACL arguments.

Summary

  • 'AccessControlListNotSupported usually means the bucket is configured not to use ACLs.'
  • The most common trigger is Object Ownership set to BucketOwnerEnforced.
  • The preferred fix is to remove ACL usage and rely on IAM and bucket policies instead.
  • Only re-enable ACLs if your architecture genuinely requires them.
  • Diagnose the bucket ownership mode first before changing code or permissions blindly.

Course
Beginner
27 lessons
10 hours
System Design Fundamentals

Build a strong foundation in designing scalable, reliable distributed systems.

View the course
System Design practice on Codemia

Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.

Practice system design