DenCowboy
DenCowboy

Reputation: 15106

How to upgrade from terrafrom 0.12 to 0.14?

I have to upgrade some terraform stacks from version 0.12 to 0.14. What steps should I use?

I found this command: terraform 0.13upgrade which I can use to upgrade from 0.12 to 0.13 but this command does not exist for 0.14? Is there any reason? I read it's recommended to upgrade one major version in a time.

Upvotes: 0

Views: 1763

Answers (1)

Martin Atkins
Martin Atkins

Reputation: 74309

The Terraform team publishes upgrade guides for each major version. As you mentioned, the only documented and supported upgrade path is to move one major version at a time: v0.12 to v0.13, v0.13 to v0.14, and then v0.14 to the forthcoming v0.15 (which is currently in beta at the time I'm writing this).

There is only an automatic upgrade command if there's something to automatically upgrade; that was true for v0.11 to v0.12 and for v0.12 to v0.13, but those were particularly complex examples of an upgrade process (significant changes to the configuration language) and not something that is typical for all Terraform CLI upgrades.

Upvotes: 1

Related Questions