AWS CLI S3 Cheat Sheet/Create a bucket

Create a new bucket using the low-level API command.

Section: S3API Bucket Commands

Create a bucket

bash
bash
aws s3api create-bucket --bucket my-bucket --region us-west-2 --create-bucket-configuration LocationConstraint=us-west-2
Explanation

Use `s3api` when you need explicit API-level control.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing S3API Bucket Commands
Check whether a bucket exists
Probe a bucket with HEAD.
OpenIn sheetbashsame section
Get bucket region
Show the bucket's region or location constraint.
OpenIn sheetbashsame section
Delete an empty bucket
Remove a bucket after it has been emptied.
OpenIn sheetbashsame section
Enable bucket versioning
Turn on object versioning for a bucket.
OpenIn sheetbashsame section
Get bucket versioning state
Inspect the versioning configuration on a bucket.
OpenIn sheetbashsame section
Set default encryption
Configure bucket default server-side encryption.
OpenIn sheetbashsame section