-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Route unable to destroy if RouteTable not present #8388
Labels
Comments
Thanks stack72! |
richardbowden
pushed a commit
to richardbowden/terraform
that referenced
this issue
Aug 27, 2016
…hashicorp#8443) found Fixes hashicorp#5288 Fixes hashicorp#8388 ``` TESTS TBC ```
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 23, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
A destroy on routes attached to a route table fail if the route table has already been destroyed or is missing, even if the route table is missing from the state file. The simplest fix is to create a dummy route table and let it get destroyed but this is manual and mucks with the state file. There is no way to delete a route via the console, so that would be a CLI issue that could be scripted.
I am still using 0.6.16 because I haven't upgraded with breaking changes in 0.7. If someone can please validate this in 0.7 that would help.
Terraform Version
I do not believe this is a version-dependent issue.
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
When a route table has been destroyed, this should be obvious to terraform and it should proceed appropriately: either recreate the resource or decide that it is gone so no further action is required.
Actual Behavior
Terrfaform is unable to destroy the route if the route-table has already been destroyed or if it is manually deleted or is missing.
Steps to Reproduce
terraform apply
terraform destroy
Important Factoids
The route-table might actually be destroyed incorrectly by terraform: that is, the routes should be destroyed before the route-table is destroyed. This is likely the source of the confusion. However, it should be a noop either way.
References
The text was updated successfully, but these errors were encountered: