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?
Asked
Active
Viewed 108 times
2 Answers
0
Have you tried with the below versions.tf
file added to your repo. This should work for both Terraform version 0.12
and 0.13
.
terraform {
required_providers {
ibm = {
source = "IBM-Cloud/ibm"
version = ">= 1.12.0"
}
}
required_version = ">= 0.12"
}
Also, the Terraform documentation on IBM Cloud covers the migration steps and also the version control information here

Vidyasagar Machupalli
- 2,737
- 1
- 19
- 29
-
I have seen it, but it applies to my local Terraform environment, not to that one managed by Schematics. – data_henrik Dec 02 '20 at 15:02
0
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).

Gas
- 17,601
- 4
- 46
- 93