You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create migration for remote state using terraform 0.13.6. Currently the migration crashes. Looks like it does not find the workspace anymore after getting the remote state.
Env: OSX
Dir: .
Terraform is inited with remote state
$terraform workspace show
cf
$ tfmigrate plan migration_1.hcl
2021/01/11 11:03:50 [INFO] [runner] load migration file: migration_1.hcl
2021/01/11 11:03:50 [INFO] [migrator] start state migrator plan
2021/01/11 11:03:52 [INFO] [migrator@.] terraform version: 0.13.6
2021/01/11 11:03:52 [INFO] [migrator@.] initialize work dir
2021/01/11 11:04:03 [INFO] [migrator@.] get the current remote state
2021/01/11 11:04:11 [INFO] [migrator@.] override backend to local
2021/01/11 11:04:11 [INFO] [executor@.] create an override file
2021/01/11 11:04:11 [INFO] [executor@.] switch backend to local
failed to switch backend to local: failed to run command (exited 1): terraform init -input=false -no-color -reconfigure
stdout:
Initializing modules...
Initializing the backend...
Successfully configured the backend "local"! Terraform will automatically
use this backend unless the backend configuration changes.
The currently selected workspace (cf) does not exist.
This is expected behavior when the selected workspace did not have an
existing non-empty state. Please enter a number to select a workspace:
default
Enter a value:
stderr:
Error: Failed to select workspace: input not a valid number
The text was updated successfully, but these errors were encountered:
I'm trying to create migration for remote state using terraform 0.13.6. Currently the migration crashes. Looks like it does not find the workspace anymore after getting the remote state.
Env: OSX
Dir: .
Terraform is inited with remote state
$terraform workspace show
cf
$ tfmigrate plan migration_1.hcl
2021/01/11 11:03:50 [INFO] [runner] load migration file: migration_1.hcl
2021/01/11 11:03:50 [INFO] [migrator] start state migrator plan
2021/01/11 11:03:52 [INFO] [migrator@.] terraform version: 0.13.6
2021/01/11 11:03:52 [INFO] [migrator@.] initialize work dir
2021/01/11 11:04:03 [INFO] [migrator@.] get the current remote state
2021/01/11 11:04:11 [INFO] [migrator@.] override backend to local
2021/01/11 11:04:11 [INFO] [executor@.] create an override file
2021/01/11 11:04:11 [INFO] [executor@.] switch backend to local
failed to switch backend to local: failed to run command (exited 1): terraform init -input=false -no-color -reconfigure
stdout:
Initializing modules...
Initializing the backend...
Successfully configured the backend "local"! Terraform will automatically
use this backend unless the backend configuration changes.
The currently selected workspace (cf) does not exist.
This is expected behavior when the selected workspace did not have an
existing non-empty state. Please enter a number to select a workspace:
Enter a value:
stderr:
Error: Failed to select workspace: input not a valid number
The text was updated successfully, but these errors were encountered: