env0 / env0-migration-tool

A repository that contains the necessary files in order to import existing Terraform workspaces from other platforms
1 stars 2 forks source link

Enhancement: validate Terraform version before running state migration #10

Open sagilaufer1992 opened 8 months ago

sagilaufer1992 commented 8 months ago

Running Terraform version>=1.6.0 causes issues with connecting to env0's remote backend, and requires running commands for unlocking the state. However the versions mismatch between the environment and local Terraform versions and the action fails.

DOD: when running a Terraform version greater or equal to 1.6.0, fail the migration script.

Known workaround: use TFENV for changing local Terraform versions when such action need to be executed

sagilaufer1992 commented 8 months ago

validate terraform version before running state migration