Skip to content
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

Revert the deprecation of the tfmigrate plan --out=tfplan option #108

Merged
merged 1 commit into from
Sep 14, 2022

Conversation

minamijoyo
Copy link
Owner

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+. #63

Even 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#30205
Use Terraform v1.1.3+ for this feature. I think this limitation is acceptable as long as it works with the latest Terraform.

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+.
#63

Even 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#30205

Use Terraform v1.1.3+ for this feature. I think this limitation is
acceptable as long as it works with the latest Terraform.
@minamijoyo minamijoyo merged commit c8b54b8 into master Sep 14, 2022
@minamijoyo minamijoyo deleted the revert-deprecation-of-plan-out branch September 14, 2022 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TF_CLI_ARGS_plan="-out=tfplan.out" doesn't work
1 participant