I am using IBM Cloud Schematics with a workspace based on Terraform 0.12. Based on the changelog a new Terraform version is supported by the runtime. How do I change my workspace to use the new runtime?
IBM Cloud Schematics: How do I upgrade the runtime from Terraform v0.12 to v0.13?
121 views Asked by data_henrik At
2
There are 2 answers
0
On
Looks like there is no automated migration, but the process is described in details here: Migrating Terraform version in Schematics workspace.
In short:
The upgrade requires the following steps to support the latest Terraform version in the Schematics workspace.
- Upgrade the Terraform configuration files to use the newer syntax and semantics.
- Migrate the Terraform state file to be compatible with the newer version.
Schematics does not support built in upgrade of the Terraform version. therefore, you must do the following:
- Prepare the upgraded version of Terraform configuration files and Terraform state file, in your local machine.
- Create a new Schematics workspace with the new Terraform configuration files and Terraform state file.
- Delete the older workspace (without destroying the resources).
Have you tried with the below
versions.tf
file added to your repo. This should work for both Terraform version0.12
and0.13
.Also, the Terraform documentation on IBM Cloud covers the migration steps and also the version control information here