-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate the tfmigrate plan --out=tfplan option
Closes #62 The tfmigrate plan --out=tfplan option was originally requested in #36, and added in #37. While testing Terraform 1.1 support, I found it no longer work with Terraform 1.1. #62 After debugging, the tfmigrate plan --out=tfplan option was based on a bug prior to Terraform 1.1. Since terraform state push increments the serial of tfstate, a saved plan file in tfmigrate plan phase should not be able to terraform apply. However, prior to Terraform 1.1, there was no proper validation and terraform apply allows a such case incorrectly. Starting from Terraform 1.1, it now rejects the plan as stale, which seems to be a correct behavior. That is, the tfmigrate plan --out=tfplan option doesn't work with Terraform 1.1 or later. There is no way to do this. Fortunately, Terraform 1.1 added a new `moved` block feature, so some use-cases could be covered by the `moved` block. So, I decided to deprecate the tfmigrate plan --out=tfplan option without replacement and it will be removed in a future release.
- Loading branch information
1 parent
3cc5036
commit dba98a6
Showing
3 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters