8000 Improve the comment of `tfmigrate plan` · Issue #899 · suzuki-shunsuke/tfaction · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve the comment of tfmigrate plan #899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
suzuki-shunsuke opened this issue Apr 27, 2023 · 1 comment
Open

Improve the comment of tfmigrate plan #899

suzuki-shunsuke opened this issue Apr 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@suzuki-shunsuke
Copy link
Owner
suzuki-shunsuke commented Apr 27, 2023

Make the comment easy to understand.

https://suzuki-shunsuke.github.io/tfaction/docs/feature/tfmigrate
https://github.com/minamijoyo/tfmigrate

  • multi_state - working directory
  • force
  • unexpected diff
  • command failure
  • migration files
@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Apr 27, 2023
@suzuki-shunsuke
Copy link
Owner Author
suzuki-shunsuke commented Apr 27, 2023

no unapplied migrations

2023/04/27 22:50:42 [INFO] [runner] no unapplied migrations

migration files

2023/04/27 22:53:18 [INFO] [runner] unapplied migration files: [20230427225226_test.hcl]
2023/04/27 22:53:18 [INFO] [runner] load migration file: tfmigrate/20230427225226_test.hcl

unexpected diff

2023/04/27 22:55:19 [ERROR] [migrator@.] unexpected diffs

terraform plan command returns unexpected diffs: failed to run command (exited 2): terraform plan -state=/var/folders/lk/bw_hsbdd72l9ckd0tz61xz2m0000gn/T/tmp1879517692 -out=/var/folders/lk/bw_hsbdd72l9ckd0tz61xz2m0000gn/T/tfplan4277955471 -input=false -no-color -detailed-exitcode

Note: Objects have changed outside of Terraform

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  - destroy

Terraform will perform the following actions:


Plan: 1 to add, 0 to change, 1 to destroy.

failed to run command

failed to run command (exited 1): terraform import -state=/var/folders/lk/bw_hsbdd72l9ckd0tz61xz2m0000gn/T/tmp3874139198 -state-out=/var/folders/lk/bw_hsbdd72l9ckd0tz61xz2m0000gn/T/tfstate2734542737 -inpu
8000
t=false -no-color -backup=/dev/null github_issue_label.foo github_issue_label.fooo
stdout:

stderr:
Error: resource address "github_issue_label.foo" does not exist in the configuration.

Before importing this resource, please create its configuration in the root module. For example:

resource "github_issue_label" "foo" {
  # (resource arguments)
}

force, unexpected diff

2023/04/27 22:59:59 [INFO] [migrator@.] unexpected diffs, ignoring as force option is true: failed to run command (exited 2):

multi_state

2023/04/27 23:03:29 [INFO] [runner] load migration file: tfmigrate/20230427225226_test.hcl
2023/04/27 23:03:29 [INFO] [migrator] multi start state migrator plan

2023/04/27 23:03:32 [INFO] [migrator@../foo] creating local workspace folder in: ../foo/terraform.tfstate.d/default

2023/04/27 23:03:36 [INFO] [migrator@.] creating local workspace folder in: terraform.tfstate.d/default

2023/04/27 23:03:37 [ERROR] [migrator@../foo] unexpected diffs

terraform plan command returns unexpected diffs: failed to run command (exited 2)

force

2023/04/27 23:10:02 [INFO] [migrator@.] unexpected diffs, ignoring as force option is true: failed to run command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant
0