Available in Classic and VPC
Create a bucket.
Syntax
The mb syntax is as follows:
aws s3 mb \
<s3-uri> \
--endpoint-url <endpoint-url>
Options
This section describes the options available when running mb.
Required options
The following options are required for mb.
| Options | Type | Required | Description |
|---|---|---|---|
<s3-uri> |
String | Required | Bucket's S3 URI
|
Common options
For information about the options common to all aws subcommands, see Object Storage options.
Examples
If the bucket creation request is successful, the S3 URI of the created bucket is returned.
Command
The command example is as follows:
aws s3 mb s3://my-temp-bucket \
--endpoint-url=https://kr.object.ncloudstorage.com
Output
The output example is as follows:
make_bucket: my-temp-bucket