Skip to content

s3 create-bucket

Create new bucket

Description

Create new S3 bucket

Synopsis

s3 create-bucket
    [--site <site>]
    [--region <region>]
    <bucket>
    --access <access>
    --zone <zone>

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

region - (string)

     AWS region for the service
     Example: --region "region-1"
     Default: _None_      Attributes: optional

bucket - (string)

     name of the bucket to be created
     Example: "mairabucket7"
     Default: _None_      Attributes: required

access - (string)

     The ACL access of the bucket
     Example: --access "private" , --access "public-read" , --access "public-read-write" , --access "authenticated-read"
     Default: _None_      Attributes: required

zone - (string)

     Zone in which, the bucket needs to be created
     Example: --zone "ap-south-1"
     Default: _None_      Attributes: required

Examples

Input:

! s3 create-bucket "mairatestbucket10" --zone "ap-south-1" --access "private"
Output:
{
  "Location": "http://mairatestbucket11.s3.amazonaws.com/",
  "ResultMetadata": {}
}

Access Control

To use this command, you need access to the following:

Field Value
Action "create"
Service Type "s3"
Service Instance
Namespace
Object Type "bucket"
Object ID bucket

Please see Access Control for details.