Revert the deprecation of the tfmigrate plan --out=tfplan option #108
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #106
The
tfmigrate plan --out=tfplan
option was initially implemented in tfmigrate v0.2.7 and deprecated in v0.3.0 because the feature was based on a bug before Terraform v1.1. This means that the saved plan file is no longer applicable in Terraform v1.1+. #63Even though, we found the plan file would still be useful for static analysis such as Conftest. #106
Let’s revert the deprecation and clarify it's intended to use only for static analysis.
Note that the old terraform show command before Terraform v1.1.3 rejects a plan file generated by
tfmigrate plan —out=tfplan
as stale. It works after this change. hashicorp/terraform#30205Use Terraform v1.1.3+ for this feature. I think this limitation is acceptable as long as it works with the latest Terraform.