hashicorp / terraform

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
https://www.terraform.io/
Other
42.55k stars 9.53k forks source link

`destroy --target` gives missleading message #3585

Closed ashb closed 8 years ago

ashb commented 9 years ago

If I run this:

terraform destroy --target=aws_instance.devservices --state=state/devservices.state resources/

I get the following message:

Terraform will delete all your managed infrastructure.

but it won't - it will only destroy the resource I have targeted. This message is misleading in this case.

ghost commented 4 years ago

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.