How can I resolve the "Bucket name already exists" or "BucketAlreadyExists" error from Amazon S3?

2 minute read
0

I want to create a new bucket in Amazon Simple Storage Service (Amazon S3). However, I get a "Bucket name already exists" error.

Resolution

Amazon S3 bucket names must be unique globally. If you try to create a bucket with a name that's already associated with another bucket, then you receive one of the following errors:

Amazon S3 console

"Bucket name already exists"

-or-

"Bucket name is already owned by you"

AWS Command Line Interface (AWS CLI) or an AWS SDK

"BucketAlreadyExists"

-or-

"BucketAlreadyOwnedByYou"

These error messages indicate that another AWS account owns a bucket with the same name. If you get any of these errors, then you must use a different bucket name to create the bucket.

If you get the Bucket name is already owned by you or BucketAlreadyOwnedByYou error, then check your account for a bucket with the same name. These errors indicate that your account already uses the bucket name. You can use the Amazon S3 console to review existing buckets. Or, you can run the head-bucket AWS CLI command to confirm that you already have a bucket with that name.

Note: If you receive errors when running AWS CLI commands, make sure that you're using the most recent AWS CLI version.

Related information

Creating a bucket

AWS OFFICIAL
AWS OFFICIALUpdated 6 months ago