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.tfvars interferes with destroy subcommand #153

Closed
kennyg opened this issue Aug 5, 2014 · 4 comments
Closed

terraform.tfvars interferes with destroy subcommand #153

kennyg opened this issue Aug 5, 2014 · 4 comments
Labels

Comments

@kennyg
Copy link

kennyg commented Aug 5, 2014

terraform.tfvars interferes with destroy subcommand

terraform apply destroy.tfplan
You can't set variables with the '-var' or '-var-file' flag
when you're applying a plan file. The variables used when
the plan was created will be used. If you wish to use different
variable values, create a new plan file.

work around is to rename terraform.tfvars file before running command.

@mitchellh
Copy link
Contributor

Ah! Good catch. This is a bug we'll get a 0.1.2 out for this.

@mitchellh
Copy link
Contributor

Fixed

@sauragrawal
Copy link

i am using terraform 0.3.7, i pass few variables with -var flag to terraform apply it works fine,
but when i do a terraform destroy it asks to enter the same variables which i passed to terraform apply

@ghost
Copy link

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

No branches or pull requests

3 participants