AWS S3 CLI BucketAlreadyExists when calling CreateBucket Error make_bucket failed


root@8b4ed5e4957e:/# aws s3 mb s3://myBucket

make_bucket failed: s3://myBucket 
An error occurred (BucketAlreadyExists) when 
calling the CreateBucket operation: 
The requested bucket name is not available. 
The bucket namespace is shared by all users of the system. 
Please select a different name and try again.

If you are trying to create an S3 bucket using the AWS CLI command, you may come across this error often BucketAlreadyExists as the bucket namespace is shared for all users using the AWS S3 service, so it is quite likely that the bucket name that you have chosen already exists.

AWS S3 CLI Error - BucketAlreadyExists
Solution:

Choose a name that is unique - the most common thing would be to add a unique suffix to your bucket name.

Advertisements
Try Out Code2care Dev Tools:

Advertisements

Advertisements
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.