-
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
Passing plans to Terraform plan is deprecated? #22873
Comments
Hi @elliot-resdiary, Thanks for letting us know about the outdated docs. The main way to view a saved plan file, which still works in Terraform 0.12, is to pass it to We'll update the documentation to reflect that, but in the meantime you should be able to replace |
The output of Here's an example. When I create the following HCL provider "null" {
version = "=2.1.2"
}
resource "null_resource" "test" {
triggers = {
test = true
}
} Now here is the output from a plan
However when we run
Which I'm sure you can agree is not an equivalent result. |
Related: #21596. |
Hello! 🤖 This issue seems to be covering the same problem or request as #21596, so we're going to close it just to consolidate the discussion over there. 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
Terraform Configuration Files
Debug Output
Crash Output
Expected Behavior
According to the documentation here
the following command should render changeset contained within a saved plan
terraform plan -out plan.bin && terraform plan plan.bin
. It's worth noting that before we upgraded to 0.12.x (previously on 0.11.x) this was working as expected.Actual Behavior
Steps to Reproduce
Using the minimal provided HCL.
terraform init
terraform plan -out ./plan.bin
terraform plan ./plan.bin
Additional Context
As mentioned previously, this was working as expected until our upgrade to 0.12.8, previously we were using 0.11.14.
References
The discussion in this issue is relevant, but the discussion doesn't line up with the referenced documentation which claims that passing a plan file to the
terraform plan
commandis valid #19235.
The text was updated successfully, but these errors were encountered: