Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do deleted Amazon S3 Bucket names become available for re-use

If I delete a Bucket from my Amazon S3 account, does the name become available for use elsewhere? I setup a bucket named "WXY234" in my S3 account, but now I'd like to have that bucket name in a different account. If I delete it from my account, will the name be released into the wild so I can use it elsewhere? If so, how long does it take for the released name to become available?

like image 858
Jeff Shall Avatar asked May 08 '16 15:05

Jeff Shall


People also ask

How long after deleting S3 bucket can you recreate?

When you delete a bucket, there may be a delay of up to one hour before the bucket name is available for reuse in a new region or by a new bucket owner. If you re-create the bucket in the same region or with the same bucket owner, there is no delay.

What happens when you delete an S3 bucket?

Using the AWS CLI You can delete a bucket that contains objects with the AWS CLI if it doesn't have versioning enabled. When you delete a bucket that contains objects, all the objects in the bucket are permanently deleted, including objects that are transitioned to the S3 Glacier storage class.

Can S3 buckets have the same name?

Amazon S3 has a global namespace. (i.e. No two S3 buckets can have the same name.) It's similar to how DNS works where each domain name must be unique. Therefore, you need to use a unique bucket name when creating S3 buckets.

Can we recover deleted S3 bucket?

You can retrieve an object that was deleted from a version-enabled bucket in one of these ways: Download the previous version of the object: To download the previous version of the object (the actual object), you must have permissions to s3:GetObjectVersion.


1 Answers

From Amazon S3 documentation Bucket Restrictions and Limitations:

Bucket ownership is not transferable; however, if a bucket is empty, you can delete it. After a bucket is deleted, the name becomes available to reuse, but the name might not be available for you to reuse for various reasons. For example, some other account could create a bucket with that name. Note, too, that it might take some time before the name can be reused. So if you want to use the same bucket name, don't delete the bucket.

like image 157
Akshay Mathur Avatar answered Jan 17 '23 02:01

Akshay Mathur