Closed antigenius0910 closed 1 year ago
Hi, @antigenius0910. Thank you for reporting the issue.
Error: Error asking for state migration action: input is disabled
The error message seems to come from the workspace related code in Terraform core. https://github.com/hashicorp/terraform/blob/v1.0.6/internal/command/meta_backend_migrate.go#L164 https://github.com/hashicorp/terraform/blob/v1.0.6/internal/command/meta_backend_migrate.go#L225
Does your configuration use the workspace feature? https://www.terraform.io/docs/cli/workspaces/index.html
Hi @minamijoyo,
Thanks for the prompt response!
I think I am not using workspace feature. one more info here. this codebase's tf files were all pull from terraformer https://github.com/GoogleCloudPlatform/terraformer
% ls -al
total 97184
drwxr-xr-x 13 yen staff 416 Oct 12 10:34 .
drwxr-xr-x 9 yen staff 288 Oct 12 10:20 ..
-rw-r--r-- 1 yen staff 26 Oct 12 10:34 .gitignore
-rwxr-xr-x 1 yen staff 3445692 Oct 12 10:20 outputs.tf
-rwxr-xr-x 1 yen staff 180 Oct 12 10:25 provider.tf
-rwxr-xr-x 1 yen staff 362482 Oct 12 10:31 repository.tf
-rwxr-xr-x 1 yen staff 379808 Oct 12 10:20 repository.tfe
-rwxr-xr-x 1 yen staff 3630701 Oct 12 10:20 repository_collaborator.tf
-rwxr-xr-x 1 yen staff 32123 Oct 12 10:20 repository_deploy_key.tf
-rwxr-xr-x 1 yen staff 225383 Oct 12 10:20 repository_webhook.tf
-rwxr-xr-x 1 yen staff 13969026 Oct 12 10:26 terraform.tfstate
-rw-r--r-- 1 yen staff 13768749 Oct 12 10:25 terraform.tfstate.1634052349.backup
-rw-r--r-- 1 yen staff 13914405 Oct 12 10:26 terraform.tfstate.1634052364.backup
% terraform workspace list
* default
OK, you don't look like using the workspace. I'm curious that terraform.tfstate
exists in the current directory. I guess you're probably using a local backend. Which backend do you use? The default is local and the reason I'm asking this is because tfmigrate doesn't work with the local backend.
https://www.terraform.io/docs/language/settings/backends/configuration.html
aww yes, local is exactly what I use for now. cool, I will test it on S3 later and come back report if it works on S3 backend! thank you so much for a prompt troubleshoot!
I'm going to close this because there has been no activity on this recently. Please feel free to reopen this if you have any questions or suggestions. Thanks!
Hello! Still have the issue here, no local storage state migration available since then?
I have no plan to support a local backend. If your state is not shared with someone, wouldn't it be enough to run the terraform state command directly?
Hi thanks last time testing with me on the sandbox! it was great!
I am moving it to my codebase now but I hit another bug, can you take a look for me when you have time? thank you!
but "terraform init -input=false -no-color -reconfigure" run seems fine by itself
checking file context