Skip to content

Instantly share code, notes, and snippets.

@tjwallace
Created March 21, 2017 00:55
Show Gist options
  • Save tjwallace/4f0939e5f92dfbd77b18bf5c37120f87 to your computer and use it in GitHub Desktop.
Save tjwallace/4f0939e5f92dfbd77b18bf5c37120f87 to your computer and use it in GitHub Desktop.
$ TF_LOG=debug tf bear state mv module.bear_advance_app.module.advance_cache_sg.aws_security_group.service module.bear_advance_app.module.advance_cache.module.service_sg.aws_security_group.service
2017/03/20 17:55:16 [INFO] Terraform version: 0.9.1
2017/03/20 17:55:16 [INFO] Go runtime version: go1.8
2017/03/20 17:55:16 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.9.1/bin/terraform", "state", "mv", "module.bear_advance_app.module.advance_cache_sg.aws_security_group.service", "module.bear_advance_app.module.advance_cache.module.service_sg.aws_security_group.service"}
2017/03/20 17:55:16 [DEBUG] Detected home directory from env var: /Users/jeff
2017/03/20 17:55:16 [DEBUG] Detected home directory from env var: /Users/jeff
2017/03/20 17:55:16 [DEBUG] Attempting to open CLI config file: /Users/jeff/.terraformrc
2017/03/20 17:55:16 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/03/20 17:55:16 [DEBUG] Detected home directory from env var: /Users/jeff
2017/03/20 17:55:16 [INFO] CLI command args: []string{"state", "mv", "module.bear_advance_app.module.advance_cache_sg.aws_security_group.service", "module.bear_advance_app.module.advance_cache.module.service_sg.aws_security_group.service"}
2017/03/20 17:55:16 [DEBUG] command: loading backend config file: /Users/jeff/code/zozi/turbinium/clusters/bear
2017/03/20 17:55:17 [DEBUG] plugin: waiting for all plugin processes to complete...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x47cd998]
goroutine 1 [running]:
github.com/hashicorp/terraform/command.(*Meta).backend_c_R_s(0xc4201dc600, 0x0, 0x8034200, 0xc4205528a0, 0x1c, 0x0, 0x6, 0x200)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/command/meta_backend.go:751 +0x78
github.com/hashicorp/terraform/command.(*Meta).backendFromConfig(0xc4201dc600, 0xc4208697b8, 0x0, 0x0, 0x0, 0x0)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/command/meta_backend.go:379 +0x129e
github.com/hashicorp/terraform/command.(*Meta).Backend(0xc4201dc600, 0xc4208697b8, 0x56c1900, 0x80248c0, 0xc4204e3a40, 0x70)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/command/meta_backend.go:89 +0x843
github.com/hashicorp/terraform/command.(*StateMeta).State(0xc4204011e0, 0xc4201dc600, 0x2, 0x2, 0x0, 0x0)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/command/state_meta.go:22 +0x4c
github.com/hashicorp/terraform/command.(*StateMvCommand).Run(0xc4204010e0, 0xc42000e1c0, 0x2, 0x2, 0xc4204e2860)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/command/state_mv.go:42 +0x356
github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc420208180, 0xc420319f50, 0xc4206f9cc0, 0x1)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
main.wrappedMain(0x0)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/main.go:192 +0xb9b
main.realMain(0x0)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/main.go:95 +0xbb
main.main()
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/main.go:31 +0x38
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x47cd998]
goroutine 1 [running]:
github.com/hashicorp/terraform/command.(*Meta).backend_c_R_s(0xc4201dc600, 0x0, 0x8034200, 0xc4205528a0, 0x1c, 0x0, 0x6, 0x200)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/command/meta_backend.go:751 +0x78
github.com/hashicorp/terraform/command.(*Meta).backendFromConfig(0xc4201dc600, 0xc4208697b8, 0x0, 0x0, 0x0, 0x0)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/command/meta_backend.go:379 +0x129e
github.com/hashicorp/terraform/command.(*Meta).Backend(0xc4201dc600, 0xc4208697b8, 0x56c1900, 0x80248c0, 0xc4204e3a40, 0x70)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/command/meta_backend.go:89 +0x843
github.com/hashicorp/terraform/command.(*StateMeta).State(0xc4204011e0, 0xc4201dc600, 0x2, 0x2, 0x0, 0x0)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/command/state_meta.go:22 +0x4c
github.com/hashicorp/terraform/command.(*StateMvCommand).Run(0xc4204010e0, 0xc42000e1c0, 0x2, 0x2, 0xc4204e2860)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/command/state_mv.go:42 +0x356
github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc420208180, 0xc420319f50, 0xc4206f9cc0, 0x1)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
main.wrappedMain(0x0)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/main.go:192 +0xb9b
main.realMain(0x0)
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/main.go:95 +0xbb
main.main()
/private/tmp/terraform-20170318-45538-1idtx0x/terraform-0.9.1/src/github.com/hashicorp/terraform/main.go:31 +0x38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment