-
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
Failed destroy causes unresolved resource references in output variables #1172
Comments
This was a known issue which has been fixed recently in #522 I'd either encourage you to try and build from current |
Ahhh... that did not turn up in my issue search. I will try running from master and close out this issue if it is resolved there. Thanks! |
OK... that seems to work now. Looks like it was a duplicate of #522. However this has now surfaced another issue in master with apply where Terraform seems to be bumping up against the API request throttling limit and crapping out. Did not see this in 0.37 but I also added a bunch of network ACLs which probably ramped up the number of API requests...
Re-running the apply finishes the deployment just fine so it looks like Terraform is not gracefully backing off its requests in the case where the AWS service starts rate limiting API calls. I'm going to look around and see if there are any existing issues that match this before creating a new issue for this problem. |
This secondary API rate limiting looks like issue #1051 Added comments there. |
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. |
I'm encountering a situation where a failed destroy will leave the Terraform state in a bad way where output variables that reference destroyed resources are causing a re-run of the destroy to fail with complaints that the output variables now reference non-existent resources.
The destroy operation failure and need to run destroy multiple times is annoying (due, I believe, to subnet destroy failure because autoscaled instances are still in the process of terminating in the subnets) but not subject of this particular issue. The issue here is that the workaround of running the destroy twice cannot be used due to invalid state.
Specifically in this case I have output variable referencing an ELB resource DNS name:
I run a destroy operation that fails because of the afore-mentioned autoscaling/subnet problem:
Now re-running the destroy operation fails thusly...
The only way to work around this problem is to comment out all the problematic output variables in the templates and then running destroy will work...
The text was updated successfully, but these errors were encountered: