Terraform version upgrade

We are currently using the following tool versions in our setup:

  • Terraform: 1.8.4
  • Ansible: 2.9.24
  • Python: 3.9.x
  • Google Cloud SDK (gcloud): 471

We are planning to upgrade to the latest versions. Could you confirm the most recent stable version of Terraform that is compatible for an upgrade from 1.8.4? Additionally, please provide recommendations for the latest compatible versions of Ansible, Python, and Google Cloud SDK to ensure alignment with the upgraded Terraform version and maintain compatibility across the stack.

Your guidance on this would be highly appreciated.

You’d probably want to read the changelogs and review breaking changes; my bet is that using the latest 1.9.x or 1.10.x should plan code intended for 1.8.4 properly. I would try it and see if things plan clean.

Normally, I don’t think any of the other tools would matter, unless you have some specific hooks between them and Terraform.

You don’t mention the Terraform Google Provider version you’re using, but that’s much more likely to cause issues than any of the things you mentioned. I would check what TPG version you’re using, and do some tests to see whether your states plan clean with TPG (and, potentially, any third party modules you’re using) updated.

All that said, even going from 5.x to 6.x of the Google provider has been mostly pretty safe for most types of resources.