Skip to content

Instantly share code, notes, and snippets.

@ivanlei
Created March 5, 2017 14:49
Show Gist options
  • Save ivanlei/40ad2d26489c42ff52c07abfc483f471 to your computer and use it in GitHub Desktop.
Save ivanlei/40ad2d26489c42ff52c07abfc483f471 to your computer and use it in GitHub Desktop.
terraform crash
2017/03/05 09:48:24 [INFO] Terraform version: 0.8.8 403a86dc557fae52f8e39676b11e1e4356b7d1a2
2017/03/05 09:48:24 [INFO] CLI args: []string{"/Volumes/dat/Users/ivanlei/bin/terraform", "plan"}
2017/03/05 09:48:24 [DEBUG] Detected home directory from env var: /Volumes/dat/Users/ivanlei
2017/03/05 09:48:24 [DEBUG] Detected home directory from env var: /Volumes/dat/Users/ivanlei
2017/03/05 09:48:24 [DEBUG] Attempting to open CLI config file: /Volumes/dat/Users/ivanlei/.terraformrc
2017/03/05 09:48:24 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/03/05 09:48:24 [DEBUG] Detected home directory from env var: /Volumes/dat/Users/ivanlei
2017/03/05 09:48:24 [DEBUG] plugin: waiting for all plugin processes to complete...
panic: runtime error: index out of range
goroutine 1 [running]:
github.com/hashicorp/terraform/config.(*interpolationWalker).replaceCurrent(0xc4201f8e40, 0x410a6c0, 0xc42043fa60, 0x97)
/opt/gopath/src/github.com/hashicorp/terraform/config/interpolate_walk.go:209 +0xd5
github.com/hashicorp/terraform/config.(*interpolationWalker).splitSlice(0xc4201f8e40)
/opt/gopath/src/github.com/hashicorp/terraform/config/interpolate_walk.go:276 +0x7c7
github.com/hashicorp/terraform/config.(*interpolationWalker).Exit(0xc4201f8e40, 0x4, 0xc4201f8e40, 0x7f741a8)
/opt/gopath/src/github.com/hashicorp/terraform/config/interpolate_walk.go:71 +0x10d
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walkSlice(0x410a6c0, 0xc42043f940, 0x97, 0x4907e00, 0xc4201f8e40, 0x3d094f4cc00, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:283 +0x35a
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walk(0x410a6c0, 0xc42043f940, 0x97, 0x4907e00, 0xc4201f8e40, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:177 +0x4e8
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.Walk(0x410a6c0, 0xc42043f940, 0x4907e00, 0xc4201f8e40, 0x6dd0c60, 0xc42019bd00)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:84 +0x131
github.com/hashicorp/terraform/config.(*Config).Validate(0xc4201f26e0, 0xc420457550, 0x4172660)
/opt/gopath/src/github.com/hashicorp/terraform/config/config.go:316 +0x768a
github.com/hashicorp/terraform/config/module.(*Tree).Validate(0xc4202ebef0, 0x6d4af20, 0xc42043f880)
/opt/gopath/src/github.com/hashicorp/terraform/config/module/tree.go:273 +0x196
github.com/hashicorp/terraform/command.(*Meta).Context(0xc420403e60, 0xc420018064, 0x50, 0x0, 0x4c5332f, 0x11, 0x0, 0xa, 0xc42019d9e0, 0x0, ...)
/opt/gopath/src/github.com/hashicorp/terraform/command/meta.go:200 +0x3ab
github.com/hashicorp/terraform/command.(*PlanCommand).Run(0xc420403e60, 0xc420080070, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/command/plan.go:69 +0x5e0
github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4201f8b40, 0xc420343440, 0xc420319ba0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
main.wrappedMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:156 +0x5e6
main.realMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:88 +0xbb
main.main()
/opt/gopath/src/github.com/hashicorp/terraform/main.go:24 +0x38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment