Why am I getting the error "A conflicting conditional operation is currently in progress against this resource" from Amazon S3 when I try to re-create a bucket?

Last updated: 2022-11-02

I deleted my Amazon Simple Storage Service (Amazon S3) bucket. Now I'm trying to create a new bucket with the same name. However, I'm getting the error: "A conflicting conditional operation is currently in progress against this resource. Try again." How can I resolve this?

Resolution

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

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

Note: If you must keep a bucket name, you can empty the bucket instead of deleting it.

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


Did this article help?


Do you need billing or technical support?