Skip to content

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 resolve the "A conflicting conditional operation is currently in progress against this resource" error when I try to recreate a deleted S3 bucket with the same name.

Resolution

After you send a request to delete a bucket, Amazon Simple Storage Service (Amazon S3) queues the bucket name for deletion. Because all AWS accounts share a namespace, 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 you delete the previous bucket. 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. Until Amazon S3 completely deletes the bucket, you can't use the same bucket name. For more information, see How do I troubleshoot issues when creating an Amazon S3 bucket?

Note: After you delete the bucket and the bucket name becomes available, any AWS account can claim it. If another account creates a bucket with that name, you permanently lose access to that bucket name. 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 logic for your bucket names that's unlikely to cause conflicts. Also, make sure that your application's logic chooses a different bucket name when a bucket name isn't available.

Related information

Creating, configuring, and working with Amazon S3 general purpose buckets

AWS OFFICIALUpdated 2 months ago
5 Comments

How many minute will it take to complete bucket deletion

replied 3 years ago

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

AWS
EXPERT
replied 3 years 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 2 years ago

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

AWS
EXPERT
replied 2 years ago

Perfect. Thank you

replied 2 years ago