Comments (7)
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.
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.
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.
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.
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.
Hello! Still have the issue here, no local storage state migration available since then?
from tfmigrate.
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)
- Migrating states from codebases with different terraform version HOT 3
- tfmigrate reports success despite backend not properly configured HOT 1
- Cannot use `*` with tfmigrate actions HOT 4
- Feature request: Display of state plan for to_dir in multi-state HOT 3
- tfmigrate reports migration plan success when Terraform plan command returns an error HOT 2
- Feature request: add an option to skip `terraform plan`-ing HOT 4
- Feature request: support replace-provider HOT 5
- Change tfmigrate-storage license from MPL2 to MIT HOT 3
- Feature request: support skip_plan in state migration HOT 2
- Feature request: support actions spanning multiple HCL files targeting the same projects HOT 4
- multi_state xmv attempts to migrate data sources? HOT 4
- Possible to optimise multi_state_mv execution time?
- Possible to optimise multi_state_mv execution time? HOT 1
- OpenTofu support HOT 3
- Add terraform >=1.1 moved resource documentation? HOT 1
- [bug] Does not work when working with terragrunt & dynamic backend config
- Error executing ftmigrate on MacOS 14.0 (ARM) HOT 1
- split resources with dependencies. HOT 1
- Bug when you have module that have the same resource names
- High vulnerability in golang library HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tfmigrate.