-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
bugAddresses a defect in current functionality.Addresses a defect in current functionality.service/ec2Issues and PRs that pertain to the ec2 service.Issues and PRs that pertain to the ec2 service.
Milestone
Description
Terraform Version
Terraform v0.11.7
- provider.aws v1.20.0
Affected Resource(s)
aws_volume_attachment
Actual Behavior
When running a terraform destroy, in which you want to destroy an aws_instance and it's aws_volume_attachment, terraform (or the AWS API) will attempt to destroy the volume attachment first, then then instance second. This often fails because Error waiting for Volume (vol-010b3d979b1027867) to detach from Instance.
Expected Behavior
If an aws_volume_attachment was going to be destroyed, and the associated aws_instance was also going to be destroyed, it would make sense to destroy the instance first and then the aws_volume_attachment second, which would never run any risk of timing out.
Steps to Reproduce
- Create an
aws_ebs_volume, anaws_instance, and aaws_volume_attachment. terraform destroy
alexcreek, alexaandru, Xyrion, bbenlazreg, vladgh and 69 moreolttwa, xtimon, mkozjak, bcampoli, jrarmstro and 1 more
Metadata
Metadata
Assignees
Labels
bugAddresses a defect in current functionality.Addresses a defect in current functionality.service/ec2Issues and PRs that pertain to the ec2 service.Issues and PRs that pertain to the ec2 service.