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

terraform plan -destroy mistakenly shows an additional item #16534

Closed
wasimj opened this issue Nov 2, 2017 · 2 comments
Closed

terraform plan -destroy mistakenly shows an additional item #16534

wasimj opened this issue Nov 2, 2017 · 2 comments

Comments

@wasimj
Copy link

wasimj commented Nov 2, 2017

Terraform v0.9.11

terraform plan -destroy on an EC2 instance mistakenly shows an additional item (subnet) in red whereas the "Plan: " summary shows just a single item.

Output from terraform plan -destroy:

- module.instances.aws_instance.instanceName
- module.instances.data.aws_subnet_ids.subnetDataName

Plan: 0 to add, 0 to change, 1 to destroy.
@apparentlymart
Copy link
Contributor

Hi @wasimj! Sorry for this strange behavior.

I think what you're describing here is the same as #14048, where data resources were being erroneously shown as being destroyed even though internally they are just removed from the Terraform state.

This was fixed in #15884, which was released in v0.10.4. I believe the output should be correct from v0.10.4 and above.

Since a fix has already been released, I'm going to close this issue. Thanks for reporting this!

@ghost
Copy link

ghost commented Apr 6, 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 Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants