-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
MalformedXML Error when deleting versioned S3 bucket with force_destroy #3981
Comments
We have created #4168 to fix this. |
Excellent!
|
Add a pipeline to destroy environments. It currently consists of 2 jobs - one to destroy VPC which then triggers a job to destroy S3 bucket. We used default/recommended pipeline/task/script distribution with this pipeline. We include taks from file, because this task repeats. Never- theless, in this case, the pipeline needs to contain quite chunky config definitions (params), because they can't be included in the task itself, due to fly only expanding params in the pipeline. In comparison with deploy pipeline, we don't use terraform's ability to pull remote state file, due to bug encountered with `bucket.tfstate`: hashicorp/terraform#4154 The remote state file worked with VPC, but we wanted to unify both tasks on same code to demonstrate default concourse pipeline file organization. We also use fake/dummy `trigger-bucket-destroy` resource here to trigger bucket destroy job after vpc destroy job. The terraform bucket destroy job currently doesnt't work, due to bugs: hashicorp/terraform#3981 and missing functionality - the old file versions are actually not removed. @combor has risen PR to add this functionality here: hashicorp/terraform#4168
#4168 was merged! I'm going to close this 😄 |
🎉 |
Hi, Today i got this issue with v0.11.8. But this is not reproducible now.
I re-run the stack again, And it works fine! Any help? |
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. |
As first reported in this mailing list thread.
My bucket resource looks like this:
The bucket creates just fine and works just fine, and I can put objects into it and those objects are correctly versioned.
But when I try to destroy that bucket — when there are objects in it — I get this:
While the bucket is not destroyed, I can confirm that all the objects in the bucket appear to be, at least in the S3 console. However, it’s possible that the objects were only logically deleted, i.e. replaced with “deletion markers” in S3 parlance, i.e. the “versions” still exist in the bucket. Oh wait, scratch that, I just found the “show versions” button in the console, and that is indeed the case.
I’m running Terraform 0.6.6 installed via Homebrew on Mac OS X 10.11.1.
The text was updated successfully, but these errors were encountered: