Terraform Enterprise allows administrators to add versions of Terraform CLI freely. There are certain versions of Terraform CLI bundled in each release of Terraform Enterprise. When workspaces are configured with Sentinel Policy checks, those checks will fail when using Terraform version
1.0.1 with a Terraform Enterprise version prior to
The specific error that will be encountered when using Terraform version
1.0.1 in a Terraform Enterprise prior to version
An error occurred: unsupported state format version: expected "0.1", got "0.2"
The reason this issue is seen is there are changes introduced to the schema generated for the Sentinel Mocks when using Terraform
1.0.1 in which the internal component of Terraform Enterprise does not recognize the updated state format version up until the release
- Upgrade Terraform Enterprise to the version
v202107-1 or later. More information on how to upgrade a Terraform Enterprise instance can be found in the official documentation:
- Continue to use a lower version of Terraform CLI if you are unable to upgrade to
v202107-1 due to restriction in your organization or availability of the installation, or contact HashiCorp Support if any inquiry.