Terraform is not removing tainted aws_resource and it's failing to remove aws_volume_attachment #288
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
Milestone
This issue was originally opened by @hgontijo as hashicorp/terraform#9065. It was migrated here as part of the provider split. The original body of the issue is below.
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: