s3:ListAllMyBuckets

List

s3:ListAllMyBuckets is a List access-level action in the s3 service. Grants permission to list all buckets owned by the authenticated sender of the request

Resource types

This action does not support resource-level permissions; use "Resource": "*" in your policy.

Condition keys

No condition keys are documented for this action.

Example IAM policy

A minimal policy that allows s3:ListAllMyBuckets. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowS3ListAllMyBuckets",
      "Effect": "Allow",
      "Action": "s3:ListAllMyBuckets",
      "Resource": "*"
    }
  ]
}

Related actions in s3

View all s3 actions →