-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Error deleting S3 Bucket with Versioning Enabled: BucketNotEmpty #208
Comments
Seeing this on v0.9.11 too. |
Can confirm the workaround that helped me with this issue (0.10.5) was:
|
FWIW this is still the case with 0.11.1 |
Yes the issue still exists with latest version of terraform. |
+1 Any idea when this issue might be resolved ? |
It works in Terraform v0.12.0.
I added some files to the bucket and then run |
i can confirm this also works in v0.11.14 as well |
There have been various fixes, such as #7268, which mean that this problem should be resolved now. |
Hi folks 👋 As mentioned above, it is likely that various scenarios have been fixed with various updates to the Terraform AWS Provider since this bug report was submitted. If you are still running into trouble running recent versions of the Terraform CLI and the Terraform AWS Provider, please open a new bug report following the issue template and we will take a further look. Thanks. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This issue was originally opened by @osterman as hashicorp/terraform#7854. It was migrated here as part of the provider split. The original body of the issue is below.
Terraform Version
Terraform v0.6.16
Affected Resource(s)
aws_s3_bucket
Terraform Configuration Files
Expected Behavior
Because
force_destroy = true
is enabled, it should also delete the versions of the objects.Actual Behavior
Steps to Reproduce
terraform apply
terraform destroy
Important Factoids
aws cli
because we also use it to store terraform remote state.References
The text was updated successfully, but these errors were encountered: