Ad space (banner)
AD

Got the fundamentals? A structured AWS course is a fast way to level up.

Find AWS courses on Udemy

Affiliate link. Costs you nothing extra.

☁️AWS Lessons
Lesson 16 / 41

Creating a Bucket with aws s3 mb

When you need somewhere to put files, use aws s3 mb. Short for "make bucket," it creates a new S3 bucket.

The syntax is aws s3 mb s3://bucket-name. The bucket is created in your default region unless you say otherwise.

Running aws s3 mb s3://my-bucket creates the bucket and prints make_bucket: my-bucket.

A common stumble is a name collision, because bucket names are globally unique. Including your project or organisation name usually avoids it.

In real work, buckets are created per purpose and environment — assets, backups, staging, production — rather than one bucket for everything.

AWS
Try it (type this into the pseudo terminal)
aws s3 mb s3://my-bucket

🧑‍💻 You can type this command into the AWS pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)