-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Updating terraform files from version 1.22 to 1.39 with out changing manually in every file #5253
Comments
I am also stuck at the same issue. Please help..!! |
What you can do is pin to the newest version of the provider (prior to 2.0) and run plan. It should then tell you what properties are deprecated allowing you to make the required changes (as well as see if there are any behaviour changes that may need addressing) |
Hi @katbyte ,
As i have few hundreds of tf files, i can not do it manually, i need to do it programatically, In the above points i have mentioned i can do change 1 programatically , but change 2 and 3 are bit difficult to do programatically, i have to do manually. Is there any better automatic way(like any command for updating tf files to particular version) for updating? |
hi @venkey1000
We've put out an upgrade guide for the 2.0 release containing all removals, since this is a major release - however for deprecations we rely on the inline warnings and notes in the changelog. Unfortunately there's no automated mechanism for doing so at this time - that said this sounds like something that'd be beneficial. So that the Terraform Core team can dig into this use-case further - would you mind opening an issue on the Terraform Core repository so that the Core Team can take a look and better understand the specific use-case you have in mind here? (e.g. if that's a command like For the moment since this isn't something directly actionable in the Azure Provider at this time, I'm going to close this issue for the moment - however should support for this become available in Terraform Core we'd look to use this for deprecations going forward 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Hi, We are largely dependent on Terraform for our infra launch in scale(like thousands of azure resources have been launched), we are looking to upgrade terraform provider version from 1.22 to 1.39(latest right now). Is there any way to upgrade this smoothly.
One way is updating tf files manually by checking the fields which are deprecated but this we can not do as there are so many resources present. Is there any better way for updating?
The text was updated successfully, but these errors were encountered: