Table Of Contents

Feedback

User Guide

First time using the AWS CLI? See the User Guide for help getting started.

Note: You are viewing the documentation for an older major version of the AWS CLI (version 1).

AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . s3 ]

mb

Description

Creates an S3 bucket.

See 'aws help' for descriptions of global parameters.

Synopsis

  mb
<S3Uri>

Options

path (string)

See 'aws help' for descriptions of global parameters.

Examples

The following mb command creates a bucket. In this example, the user makes the bucket mybucket. The bucket is created in the region specified in the user's configuration file:

aws s3 mb s3://mybucket

Output:

make_bucket: s3://mybucket

The following mb command creates a bucket in a region specified by the --region parameter. In this example, the user makes the bucket mybucket in the region us-west-1:

aws s3 mb s3://mybucket --region us-west-1

Output:

make_bucket: s3://mybucket