-
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
CLI subcommands prob #7983
Comments
This has indeed changed from 0.6.x to 0.7.x, as per:
|
Fixed here: mitchellh/cli#40 Once reviewed and merged will update the deps for Terraform and will be fixed. |
Update mitchellh/cli to fix GH-7983
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. |
Terraform subcommands with parameters will still run if theres a space missing. Example:
terraform destroy-target=<module>
Space missing between
destroy
and-target=<module>
You'd expect this to error out, but instead:
If you don't look carefully you can miss the fact that its going to destroy all the resources, not just the module targeted.
If you then tell it yes, it will proceed to nuke the world.
Terraform Version
Terraform v0.7.0-dev (bad37a57cbea29d96753750bf95f23241f520681)
Affected Resource(s)
Subcommands
Terraform Configuration Files
N/A
Debug Output
N/A
Panic Output
N/A
Expected Behavior
Terraform should have exited as the command line params/subcommand was incorrect, as it was missing a space between the
destroy
subcommand and-target
parametersActual Behavior
Terraform proceeded to destroy all resources in the current state.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform destroy-target=<module>
Important Factoids
N/A
References
N/A
The text was updated successfully, but these errors were encountered: