-
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
0.12upgrade and init have a "chicken vs egg problem" #19724
Comments
Thanks for reporting this, @jhoblitt! There's still remaining work to do on the upgrade tool before we consider it "ready", and this is one of the things we need to figure out. We'll come up with a reasonable plan for this before we consider the upgrade tool ready to start using in the beta1 release. |
I suppose this could be a "doc fix" but I imagine that the latest tf |
Indeed, installing first with 0.11 is what would work without any code changes, though we'd like to do better than that for the 0.12.0 final release, even if we don't manage to get that all wired up for beta. Since we still have all the old configuration loading codepaths in the codebase (dead code yet to be cleaned up) the most likely path will be to retain just enough of that to look up provider and module dependencies and give the |
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
Expected Behavior
terraform 0.12upgrade --yes
is able to upgrade the syntax of arbitrary tf modules (assuming that all providers are tf >= 0.12 compatible).Actual Behavior
terraform 0.12upgrade
fails if the appropriate set of providers have not already been installed by tf0.11.x
.terraform init
fails if the syntax has not already been upgraded to be0.12.
compatible.Steps to Reproduce
Additional Context
In this example, a tf >= 0.12 kubernetes provider isn't present.
The text was updated successfully, but these errors were encountered: