Giter VIP home page Giter VIP logo

Comments (7)

minamijoyo avatar minamijoyo commented on June 14, 2024

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

from tfmigrate.

antigenius0910 avatar antigenius0910 commented on June 14, 2024

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

from tfmigrate.

minamijoyo avatar minamijoyo commented on June 14, 2024

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

from tfmigrate.

antigenius0910 avatar antigenius0910 commented on June 14, 2024

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!

from tfmigrate.

minamijoyo avatar minamijoyo commented on June 14, 2024

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!

from tfmigrate.

Diliz avatar Diliz commented on June 14, 2024

Hello! Still have the issue here, no local storage state migration available since then?

from tfmigrate.

minamijoyo avatar minamijoyo commented on June 14, 2024

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?

from tfmigrate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.