You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the aws_instance has an aws_volume_attachment, we used to taint aws_instance before running terraform destroy to ensure the instance is marked for deletion so that aws_instance, aws_volume_attachment, aws_ebs_volume are properly destroyed regardless of the volume attachment dependency. This was working fine until v0.6.16.
Actual Behavior
$ terraform taint -no-color -allow-missing -module=teamcity aws_instance.teamcity_server
The resource aws_instance.teamcity_server in the module root.teamcity has been marked as tainted!
$ terraform destroy
...
Error applying plan:
1 error(s) occurred:
* aws_volume_attachment.data_volume_attachment: Error waiting for Volume (vol-af94311b) to detach from Instance: i-a6182dbe
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.
ghost
locked and limited conversation to collaborators
Apr 10, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
0.7.4
Affected Resource(s)
Terraform Configuration Files
I ommited non-relevant parts.
Expected Behavior
Since the
aws_instance
has anaws_volume_attachment
, we used to taintaws_instance
before runningterraform destroy
to ensure the instance is marked for deletion so thataws_instance
,aws_volume_attachment
,aws_ebs_volume
are properly destroyed regardless of the volume attachment dependency. This was working fine until v0.6.16.Actual Behavior
Full logs
Based on the logs,
aws_instance
is not being removed as expected by runningtaint
beforedestroy
.Steps to Reproduce
terraform apply
terraform destroy
References
That maybe related to:
The text was updated successfully, but these errors were encountered: