← 返回命令列表

Linux command

aws-s3-mb 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create a new S3 bucket

aws s3 mb s3://[bucket-name]

Create a bucket

aws s3 mb s3://[bucket-name] --region [us-west-1]

说明

aws s3 mb (make bucket) creates a new Amazon S3 bucket. The bucket name must be globally unique across all AWS accounts and comply with S3 naming rules. By default, the bucket is created in the region specified in your AWS configuration. Use the --region option to create the bucket in a different region.

参数

S3Uri
The S3 URI for the bucket to create in the format s3://bucket-name
--region _value_
Create the bucket in the specified AWS region (overrides default region)

FAQ

What is the aws-s3-mb command used for?

aws s3 mb (make bucket) creates a new Amazon S3 bucket. The bucket name must be globally unique across all AWS accounts and comply with S3 naming rules. By default, the bucket is created in the region specified in your AWS configuration. Use the --region option to create the bucket in a different region.

How do I run a basic aws-s3-mb example?

Run `aws s3 mb s3://[bucket-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does S3Uri do in aws-s3-mb?

The S3 URI for the bucket to create in the format s3://bucket-name