Skip to content

Instantly share code, notes, and snippets.

@steinybot
Created March 17, 2020 05:36
Show Gist options
  • Select an option

  • Save steinybot/6d6fed5c27d7eb919a1c939521d57c20 to your computer and use it in GitHub Desktop.

Select an option

Save steinybot/6d6fed5c27d7eb919a1c939521d57c20 to your computer and use it in GitHub Desktop.
Terraform tace log
❯ TF_LOG=trace terraform plan
2020/03/17 18:35:06 [INFO] Terraform version: 0.12.23
2020/03/17 18:35:06 [INFO] Go runtime version: go1.12.13
2020/03/17 18:35:06 [INFO] CLI args: []string{"/usr/local/Cellar/tfenv/1.0.2/versions/0.12.23/terraform", "plan"}
2020/03/17 18:35:06 [DEBUG] Attempting to open CLI config file: /Users/jason/.terraformrc
2020/03/17 18:35:06 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/03/17 18:35:06 [INFO] CLI command args: []string{"plan"}
2020/03/17 18:35:06 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2020/03/17 18:35:06 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2020/03/17 18:35:06 [DEBUG] New state was assigned lineage "b7d7f93e-5dfa-a01a-61c0-8afc255a5b65"
2020/03/17 18:35:06 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2020/03/17 18:35:06 [TRACE] Meta.Backend: instantiated backend of type <nil>
2020/03/17 18:35:06 [DEBUG] checking for provider in "."
2020/03/17 18:35:06 [DEBUG] checking for provider in "/usr/local/Cellar/tfenv/1.0.2/versions/0.12.23"
2020/03/17 18:35:06 [DEBUG] checking for provisioner in "."
2020/03/17 18:35:06 [DEBUG] checking for provisioner in "/usr/local/Cellar/tfenv/1.0.2/versions/0.12.23"
2020/03/17 18:35:06 [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
2020/03/17 18:35:06 [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend
2020/03/17 18:35:06 [INFO] backend/local: starting Plan operation
2020/03/17 18:35:06 [TRACE] backend/local: requesting state manager for workspace "default"
2020/03/17 18:35:06 [TRACE] backend/local: state manager for workspace "default" will:
- read initial snapshot from terraform.tfstate
- write new snapshots to terraform.tfstate
- create any backup at terraform.tfstate.backup
2020/03/17 18:35:06 [TRACE] backend/local: requesting state lock for workspace "default"
2020/03/17 18:35:06 [TRACE] statemgr.Filesystem: preparing to manage state snapshots at terraform.tfstate
Error: Variables not allowed
2020/03/17 18:35:06 [TRACE] statemgr.Filesystem: no previously-stored snapshot exists
2020/03/17 18:35:06 [TRACE] statemgr.Filesystem: locking terraform.tfstate using fcntl flock
2020/03/17 18:35:06 [TRACE] statemgr.Filesystem: writing lock metadata to .terraform.tfstate.lock.info
2020/03/17 18:35:06 [TRACE] backend/local: reading remote state for workspace "default"
2020/03/17 18:35:06 [TRACE] statemgr.Filesystem: reading latest snapshot from terraform.tfstate
2020/03/17 18:35:06 [TRACE] statemgr.Filesystem: snapshot file has nil snapshot, but that's okay
2020/03/17 18:35:06 [TRACE] statemgr.Filesystem: read nil snapshot
2020/03/17 18:35:06 [TRACE] backend/local: retrieving local state snapshot for workspace "default"
2020/03/17 18:35:06 [TRACE] backend/local: building context for current working directory
2020/03/17 18:35:06 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info
2020/03/17 18:35:06 [TRACE] statemgr.Filesystem: unlocking terraform.tfstate using fcntl flock
on terraform.tfvars line 1:
1: foo = bar
Variables may not be used here.
Error: No value for required variable
on variables.tf line 1:
1: variable "foo" {
The root module input variable "foo" is not set, and has no default value. Use
a -var or -var-file command line argument to provide a value for this
variable.
@steinybot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment