-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Destroy non-empty bucket #1977
Comments
If we treat S3 like RDS which may have some data that we may not want to loose, then there would have to be either an option to do a backup or at least some kind of "force" option making sure that user is absolutely sure about removing data. If we support removing data in buckets, then this behaviour IMO shouldn't be default (i.e. by default Terraform should still show error from AWS API saying that bucket is not empty). |
I think a force option makes sense, we do this with launch configurations or ASGs, I always mix up each. |
+1 for the force option - that would be very handy for our use case too. |
I'm not seeing a |
@catsby Sorry thats what I meant. Its a TF setting only that we use to just iterate the bucket and do a multi-delete. Yep. Or, that's what we should do. |
I just merged #2007 which adds a |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Right now if you try to destroy an S3 bucket with any items in it, terraform will fail:
This is because S3 requires you delete all items before deleting the bucket. It would be great if terraform could do that automatically.
The text was updated successfully, but these errors were encountered: