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

Last updated: 2019-08-20

I'm trying to create a new bucket in Amazon Simple Storage Service (Amazon S3). However, I'm getting one of the following errors:

  • "Bucket name already exists" from the Amazon S3 console
  • "BucketAlreadyExists" from the AWS Command Line Interface (AWS CLI) or an AWS SDK
  • "Bucket name is already owned by you" from the Amazon S3 console
  • "BucketAlreadyOwnedByYou" from the AWS CLI or an AWS SDK

How can I fix this?

Resolution

Amazon S3 bucket names must be unique globally. If you get the "Bucket name already exists" or "BucketAlreadyExists" error, then you must use a different bucket name to create the bucket. These error messages indicate that another AWS account owns a bucket with the same name.

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 error messages indicate that your account is already using 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. 


Did this article help you?

Anything we could improve?


Need more help?