Skip to content
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

alpha1: destroy shows data sources destroying #19207

Closed
mitchellh opened this issue Oct 28, 2018 · 1 comment · Fixed by #19613
Closed

alpha1: destroy shows data sources destroying #19207

mitchellh opened this issue Oct 28, 2018 · 1 comment · Fixed by #19613
Assignees
Labels
Milestone

Comments

@mitchellh
Copy link
Contributor

Terraform Version

terraform → ~/bin/terraform version
Terraform v0.12.0-dev (009534d1016cd3b1d0d911f151520b04f8db453a)
+ provider.google v1.19.1-3-g59efc8b9
+ provider.null v1.0.0-4-g0b90acb
+ provider.random v2.0.0-4-gb282401

Terraform Configuration Files

Same config as: #19152

Note: requires latest Terraform master and Google provider recompiled to avoid the above issue.

Expected Behavior

The destroy command plan shows only real resources to destroy.

While it makes sense from an internal/state perspective that the data sources are being "destroyed", it is odd as an end user since they're just sources of data. At worst, it can be very scary because it seems to imply that the actual data source will be destroyed (even though only the cached data is of course).

Terraform <= 0.11.x didn't show this.

Actual Behavior

The destroy command plan shows data sources being destroyed.

Steps to Reproduce

Apply then destroy.

@ghost
Copy link

ghost commented Mar 30, 2020

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 ghost locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants