s3:CreateBucket

Write

s3:CreateBucket is a Write access-level action in the s3 service. Grants permission to create a new bucket

Resource types

ARNs that s3:CreateBucket can be scoped to in an IAM policy.

arn:${Partition}:s3:::${BucketName} required
bucket

Condition keys

Keys you can use in the Condition block of a policy that grants s3:CreateBucket.

aws:RequestTag/${TagKey} String

Filters access by the tags that are passed in the request

aws:TagKeys ArrayOfString

Filters access by the tag keys that are passed in the request

s3:ResourceAccount String

Filters access by the resource owner AWS account ID

s3:TlsVersion Numeric

Filters access by the TLS version used by the client

s3:authType String

Filters access by authentication method

s3:locationconstraint String

Filters access by a specific Region

s3:signatureAge Numeric

Filters access by the age in milliseconds of the request signature

s3:signatureversion String

Filters access by the version of AWS Signature used on the request

s3:x-amz-acl String

Filters access by canned ACL in the request's x-amz-acl header

s3:x-amz-bucket-namespace String

Filters access by general purpose bucket namespace type

s3:x-amz-content-sha256 String

Filters access by unsigned content in your bucket

s3:x-amz-grant-full-control String

Filters access by x-amz-grant-full-control (full control) header

s3:x-amz-grant-read String

Filters access by x-amz-grant-read (read access) header

s3:x-amz-grant-read-acp String

Filters access by the x-amz-grant-read-acp (read permissions for the ACL) header

s3:x-amz-grant-write String

Filters access by the x-amz-grant-write (write access) header

s3:x-amz-grant-write-acp String

Filters access by the x-amz-grant-write-acp (write permissions for the ACL) header

s3:x-amz-object-ownership String

Filters access by Object Ownership

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

s3:BucketTag/${TagKey} String

Filters access by the tags associated with the bucket

Example IAM policy

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

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

Related actions in s3

View all s3 actions →