-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
AWS subnet deletion doesn't account for an ELB's network interface and gives a meaningless error #655
Comments
See also #151 - agree that ELB dependencies on subnets don't appear to be treated as such for the purpose of dependency graph construction. |
I'm also seeing this happen with EFS attachments to the ENIs associated with the subnets. It doesn't seem to try to destroy the EFS file systems in order to release the ENIs to then be able to destroy the subnet. |
I also face this issue after reducing the
If I try to manually destroy the subnet in the console, it says that the subnet still has network interface attached to it. I do not have a clue how to solve this without fiddling in the console (and thus messing the tfstate). |
@robertoandrade EFS may need a separate issue as that may create ENIs with different lifecycle and naming conventions. We may be able to address that. In regards to load balancers - these are being discussed in #151 where I also posted full repro case. I'm going to close this as duplicate in favour of #151 to keep discussion in one place. I hope you don't mind. |
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 @randomvoids as hashicorp/terraform#13296. It was migrated here as part of the provider split. The original body of the issue is below.
I attempted to modify the cidr block of a aws_subnet which requires the deletion/re-creation of the subnet. Within terraform I also had an aws_elb defined that attached a network interface to that subnet. When running 'terraform apply' the command timed out with
When running it in the AWS console it will immediately come back with:
Terraform should catch and immediately return that error instead of just timing out after 5 minutes with a generic error. This should also be detected during the plan stage.
That and/or handle the cascading deletions required to fully delete a subnet.
I'm using Terraform v0.9.2
The text was updated successfully, but these errors were encountered: