Why do I get the error "A conflicting conditional operation is currently in progress against this resource" from Amazon S3 when I recreate a bucket?

2 minute read
3

I want to learn how to resolve the "A conflicting conditional operation is currently in progress against this resource" error when trying to recreate an Amazon S3 bucket with the same name after deletion.

Resolution

After you send a request to delete a bucket, Amazon S3 queues the bucket name for deletion. Because the namespace is shared by all AWS accounts, a bucket name must be globally unique. Amazon S3 is a large distributed system, and changes such as the deletion of a bucket take time to become consistent across all AWS Regions.

In many cases, you can create a bucket within a few hours after the previous bucket is deleted. However, it might take 48-72 hours for the changes to become consistent. It's a best practice to wait at least 48 hours to recreate the S3 bucket. For more information, see How do I troubleshoot errors when creating an Amazon S3 bucket?

Until Amazon S3 completely deletes the bucket, you can't use the same bucket name. However, after the bucket is deleted and the name is available, other accounts can use the bucket name. If another account uses the bucket name, then you can't use the same name.

Note: If you must keep a bucket name, then don't delete the bucket. Instead, empty the bucket.

If your application automatically creates buckets, then choose a bucket-naming logic that's unlikely to cause naming conflicts. Also, make sure that your application's logic chooses a different bucket name when a bucket name is already taken.

Related information

Creating, configuring, and working with Amazon S3 buckets

AWS OFFICIAL
AWS OFFICIALUpdated 8 months ago
5 Comments

How many minute will it take to complete bucket deletion

replied a year ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

profile pictureAWS
MODERATOR
replied a year ago

How much approximate minutes/ Hours it take to free up the Bucket names? , It is very important when we want to switch the S3 bucket from1 AWS account to other.

replied 9 months ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

profile pictureAWS
MODERATOR
replied 9 months ago

Perfect. Thank you

replied 8 months ago