Skip to content

Instantly share code, notes, and snippets.

@dannystaple
Created February 25, 2022 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannystaple/80942dc3e7dd4c8d9010b6f4033b13c1 to your computer and use it in GitHub Desktop.
Save dannystaple/80942dc3e7dd4c8d9010b6f4033b13c1 to your computer and use it in GitHub Desktop.
$ (cd src/environments/prod; TF_LOG=trace terraform fmt -check -recursive)
2022-02-25T17:54:20.570Z [DEBUG] Adding temp file log sink: /var/folders/87/nv1zkt0s2nq86764_c0jf94h0000gn/T/terraform-log895494832
2022-02-25T17:54:20.570Z [INFO] Terraform version: 1.0.5
2022-02-25T17:54:20.570Z [INFO] Go runtime version: go1.16.4
2022-02-25T17:54:20.570Z [INFO] CLI args: []string{"/usr/local/bin/terraform", "fmt", "-check", "-recursive"}
2022-02-25T17:54:20.570Z [TRACE] Stdout is a terminal of width 172
2022-02-25T17:54:20.570Z [TRACE] Stderr is a terminal of width 172
2022-02-25T17:54:20.570Z [TRACE] Stdin is a terminal
2022-02-25T17:54:20.570Z [DEBUG] Attempting to open CLI config file: /Users/danielstaple/.terraformrc
2022-02-25T17:54:20.570Z [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022-02-25T17:54:20.570Z [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022-02-25T17:54:20.570Z [DEBUG] ignoring non-existing provider search directory /Users/danielstaple/.terraform.d/plugins
2022-02-25T17:54:20.570Z [DEBUG] ignoring non-existing provider search directory /Users/danielstaple/Library/Application Support/io.terraform/plugins
2022-02-25T17:54:20.570Z [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2022-02-25T17:54:20.570Z [INFO] CLI command args: []string{"fmt", "-check", "-recursive"}
2022-02-25T17:54:20.571Z [TRACE] terraform fmt: looking for files in .
2022-02-25T17:54:20.571Z [TRACE] terraform fmt: Formatting main.tf
2022-02-25T17:54:20.572Z [TRACE] terraform fmt: Formatting variables.tf
main.tf
$ echo $?
3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment