-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Add [PATH] argument to taint command #15447
Comments
I've tried multiple variants on using |
Terraform creates its initialization structures relative to the current working directory where you run You should always run terraform from within the directory where you ran You should also note that |
After re-reading this, it appears that you're expecting |
Yes, that's exactly what I'm saying :) thanks! And yes, we are running from the directory we ran init in. That directory is a subdirectory of the root (which contains all of the TF files). |
Same goes for all commands that don't take a path. Just ran across |
@jbardin any update on this? |
I also have the same problem with terraform output running from the same directory as terraform init, plan, apply which all worked fine. I am using remote state and could copy down the state file but this isn't ideal. Is there any update on this? |
Hi,
At every deployment, I run:
The last one fails with the same error:
I assume that is related to the Any help on this one? Thanks |
same thing for the |
Hello all! This is now handled globally by the Thanks! |
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 Version
0.9.6-0.9.10
We use subdirectories to isolate AWS Accounts (not environments) so they can have their own state and tfvars files. I cannot seem to get taint to work in this setup.
Expected Behavior
terraform taint some.resource ..
should taint the resourceActual Behavior
Important Factoids
Remote state in S3, backend properly initialized. Running
terraform apply ..
works fine.I have tried to use the -state flag like so, to no avail:
terraform taint -state=FOLDER/.terraform/terraform.tfstate some.resource
in the root directory where all the terraform files are. Same issue.The text was updated successfully, but these errors were encountered: