Skip to content

Instantly share code, notes, and snippets.

@eilgin
Created October 25, 2017 09:10
Show Gist options
  • Save eilgin/430f690c6c7269c83da18b8f6bad2f88 to your computer and use it in GitHub Desktop.
Save eilgin/430f690c6c7269c83da18b8f6bad2f88 to your computer and use it in GitHub Desktop.
terraform console crash using "data.*"
2017/10/25 10:59:24 [INFO] Terraform version: 0.10.7
2017/10/25 10:59:24 [INFO] Go runtime version: go1.9
2017/10/25 10:59:24 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.10.7/bin/terraform", "console"}
2017/10/25 10:59:24 [DEBUG] Attempting to open CLI config file: /Users/eilgin/.terraformrc
2017/10/25 10:59:24 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/10/25 10:59:24 [DEBUG] CLI Config is main.Config{Providers:map[string]string{}, Provisioners:map[string]string{}, DisableCheckpoint:false, DisableCheckpointSignature:false, PluginCacheDir:""}
2017/10/25 10:59:24 [INFO] CLI command args: []string{"console"}
2017/10/25 10:59:24 [DEBUG] command: loading backend config file: /Users/eilgin/Documents/work/infra-build
2017/10/25 10:59:24 [INFO] command: backend config not found, returning nil: /Users/eilgin/Documents/work/infra-build
2017/10/25 10:59:24 [INFO] command: no config, returning nil
2017/10/25 10:59:24 [DEBUG] command: no data state file found for backend config
2017/10/25 10:59:24 [DEBUG] New state was assigned lineage "5a3e7e75-b8fd-407b-9ab0-b20a5f1fcd3c"
2017/10/25 10:59:24 [INFO] command: backend initialized: <nil>
2017/10/25 10:59:24 [DEBUG] checking for provider in "."
2017/10/25 10:59:24 [DEBUG] checking for provider in "/usr/local/Cellar/terraform/0.10.7/bin"
2017/10/25 10:59:24 [DEBUG] checking for provisioner in "."
2017/10/25 10:59:24 [DEBUG] checking for provisioner in "/usr/local/Cellar/terraform/0.10.7/bin"
2017/10/25 10:59:24 [INFO] Failed to read plugin lock file .terraform/plugins/darwin_amd64/lock.json: open .terraform/plugins/darwin_amd64/lock.json: no such file or directory
2017/10/25 10:59:24 [INFO] command: backend <nil> is not enhanced, wrapping in local
2017/10/25 10:59:24 [DEBUG] New state was assigned lineage "6c094306-3ac5-4470-b0ab-b9f3446a0db8"
2017/10/25 10:59:39 [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=0x10 pc=0x1620154]
goroutine 1 [running]:
github.com/hashicorp/terraform/config/module.(*Tree).Config(...)
/private/tmp/terraform-20171002-4675-1ffuljq/terraform-0.10.7/src/github.com/hashicorp/terraform/config/module/tree.go:68
github.com/hashicorp/terraform/terraform.(*Interpolater).resourceVariableInfo(0xc420279700, 0xc4205b98d8, 0xc4202a87e0, 0x1002301204b2bd9, 0x5, 0x101202c, 0x51e22d8)
/private/tmp/terraform-20171002-4675-1ffuljq/terraform-0.10.7/src/github.com/hashicorp/terraform/terraform/interpolate.go:759 +0x44
github.com/hashicorp/terraform/terraform.(*Interpolater).computeResourceVariable(0xc420279700, 0xc4205b98d8, 0xc4202a87e0, 0x0, 0x0, 0x0)
/private/tmp/terraform-20171002-4675-1ffuljq/terraform-0.10.7/src/github.com/hashicorp/terraform/terraform/interpolate.go:461 +0x14e
github.com/hashicorp/terraform/terraform.(*Interpolater).valueResourceVar(0xc420279700, 0xc4205b98d8, 0xc420492cc2, 0x2f, 0xc4202a87e0, 0xc4204829f0, 0xc420482960, 0xc420482960)
/private/tmp/terraform-20171002-4675-1ffuljq/terraform-0.10.7/src/github.com/hashicorp/terraform/terraform/interpolate.go:253 +0x68
github.com/hashicorp/terraform/terraform.(*Interpolater).Values(0xc420279700, 0xc4205b98d8, 0xc4204829c0, 0x0, 0xc420285b88, 0xc420492cc0)
/private/tmp/terraform-20171002-4675-1ffuljq/terraform-0.10.7/src/github.com/hashicorp/terraform/terraform/interpolate.go:86 +0x82f
github.com/hashicorp/terraform/repl.(*Session).handleEval(0xc4205b9a88, 0xc420492c80, 0x2f, 0x2f, 0x2f, 0x0, 0x0)
/private/tmp/terraform-20171002-4675-1ffuljq/terraform-0.10.7/src/github.com/hashicorp/terraform/repl/session.go:55 +0x2b7
github.com/hashicorp/terraform/repl.(*Session).Handle(0xc4205b9a88, 0xc420492c80, 0x2f, 0x0, 0x0, 0x43e1da0, 0xc4204912e0)
/private/tmp/terraform-20171002-4675-1ffuljq/terraform-0.10.7/src/github.com/hashicorp/terraform/repl/session.go:35 +0xa9
github.com/hashicorp/terraform/command.(*ConsoleCommand).modeInteractive(0xc4203729c0, 0xc4205b9a88, 0x43f6ee0, 0xc4203c4690, 0x0)
/private/tmp/terraform-20171002-4675-1ffuljq/terraform-0.10.7/src/github.com/hashicorp/terraform/command/console_interactive.go:48 +0x1e7
github.com/hashicorp/terraform/command.(*ConsoleCommand).Run(0xc4203729c0, 0x0, 0x0, 0x0, 0xc4202712f0)
/private/tmp/terraform-20171002-4675-1ffuljq/terraform-0.10.7/src/github.com/hashicorp/terraform/command/console.go:100 +0x612
github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4202c3b80, 0xc4202c3b80, 0xc4201ebcc0, 0x1)
/private/tmp/terraform-20171002-4675-1ffuljq/terraform-0.10.7/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli/cli.go:255 +0x1eb
main.wrappedMain(0x0)
/private/tmp/terraform-20171002-4675-1ffuljq/terraform-0.10.7/src/github.com/hashicorp/terraform/main.go:217 +0xc50
main.realMain(0x0)
/private/tmp/terraform-20171002-4675-1ffuljq/terraform-0.10.7/src/github.com/hashicorp/terraform/main.go:96 +0xbb
main.main()
/private/tmp/terraform-20171002-4675-1ffuljq/terraform-0.10.7/src/github.com/hashicorp/terraform/main.go:32 +0x38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment