-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
change suggested apply
command after saving plan file to account for -chdir
#35305
Comments
Hi @EugenKon, You specified that We use GitHub issues for tracking bugs and enhancements, rather than for questions. While we can sometimes help with certain simple problems here, it's better to use the community forum where there are more people ready to help. Thanks! |
@jbardin This is not the question, this is the proposition to improve TF output. Here instead of This is misleading to see the hint which does not work. |
@EugenKon, thanks I see what you mean now, and we can file this as an enhancement request. Getting that output might be a bit more difficult than it sounds, since terraform has already changed its working directory before the planning process has even begun. |
apply
command after saving plan file to account for -chdir
We do currently "remember" the original working directory so that terraform/internal/command/workdir/dir.go Lines 114 to 124 in 8e4d466
The However, I think this specific message is being printed by the local backend rather than by |
Terraform Version
Terraform Configuration Files
not relevant
Debug Output
Expected Behavior
The plan should be run
Actual Behavior
plan was not found
Steps to Reproduce
Though the next command works:
terraform -chdir=derived-src/aws/ apply -state=../../state.d/terraform.tfstate "repl"
It would be nice to output additional mandatory option for the plan instead of just
terraform plan "repl"
(see the debug output above).Or, the better solution, save
-chdir
and-state
options into the plan and save the plan into the current directory.Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: