Skip to content

Instantly share code, notes, and snippets.

@melbit-michaelw
melbit-michaelw / chunklist-weirdness.log
Created July 17, 2019 05:36
terraform apply trace log for chunklist weirdness
2019/07/17 15:34:15 [INFO] Terraform version: 0.12.4
2019/07/17 15:34:15 [INFO] Go runtime version: go1.12.4
2019/07/17 15:34:15 [INFO] CLI args: []string{"/Users/michaelw/bin/terraform", "apply"}
2019/07/17 15:34:15 [DEBUG] Attempting to open CLI config file: /Users/michaelw/.terraformrc
2019/07/17 15:34:15 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/07/17 15:34:15 [INFO] CLI command args: []string{"apply"}
2019/07/17 15:34:15 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/07/17 15:34:15 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/07/17 15:34:15 [DEBUG] New state was assigned lineage "9e7b629e-96bd-6b4c-7a28-c7da75f561ce"
2019/07/17 15:34:15 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
@melbit-michaelw
melbit-michaelw / crash.log
Created July 9, 2019 22:36
terraform crash when chunklist called with empty list
Error: Error in function call
on <console-input> line 1:
(source code not available)
Call to function "chunklist" failed: panic in function implementation: must
not call ListVal with empty slice
goroutine 1 [running]:
runtime/debug.Stack(0xc000c78058, 0x25dc320, 0x2d91370)
/opt/goenv/versions/1.12.4/src/runtime/debug/stack.go:24 +0x9d