-
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
Don't refresh datasources during a destroy. #15386
Comments
This still occurs in terraform 0.11.7 |
Also happens with terraform 0.12 |
Same thing is happening for ebs snapshot data source, if snapshot is deleted manually before terraform destroy. We are using terraform version 0.12.13 |
Similar issue with RDS Code
Error
|
What's the solution? |
|
The separate refresh walk has been removed, and resources are only refreshed as need during plan, so this should no longer be an issue in the upcoming 0.14 release. Thanks! |
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. |
If I reference an external resource in a datasource and later on do a
terraform destroy
and the datasource lookup fails, then my destroy will fail. If I instruct Terraform to not refresh via-refresh=false
, my destroy will complete successfully.Terraform Version
Terraform v0.9.8
Terraform Configuration Files
Expected Behavior
I should be able to destroy successfully.
Actual Behavior
If the datasource returns a 404, my destroy fails.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform destroy
. This will fail.The text was updated successfully, but these errors were encountered: