Skip to content

Instantly share code, notes, and snippets.

@SarahFrench
Last active February 8, 2023 17:18
Show Gist options
  • Save SarahFrench/ef49697f904f68ad466d766d52f60550 to your computer and use it in GitHub Desktop.
Save SarahFrench/ef49697f904f68ad466d766d52f60550 to your computer and use it in GitHub Desktop.
In this example, `TF_CLI_CONFIG_FILE` is set to point at a non-existant file
In this example, `TF_CLI_CONFIG_FILE` is set to point at a non-existant file
$ TF_LOG=trace TF_CLI_CONFIG_FILE="/Users/sarahfrench/tfc-test-repos/tf-goog-manual-tests/file-doesnt-exist.tfrc" terraform plan
2023-02-08T17:12:43.804Z [INFO] Terraform version: 1.3.5 dev
2023-02-08T17:12:43.804Z [DEBUG] using github.com/hashicorp/go-tfe v1.9.0
2023-02-08T17:12:43.804Z [DEBUG] using github.com/hashicorp/hcl/v2 v2.15.0
2023-02-08T17:12:43.804Z [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2023-02-08T17:12:43.804Z [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2023-02-08T17:12:43.804Z [DEBUG] using github.com/zclconf/go-cty v1.12.1
2023-02-08T17:12:43.804Z [INFO] Go runtime version: go1.18.3
2023-02-08T17:12:43.804Z [INFO] CLI args: []string{"terraform", "plan"}
2023-02-08T17:12:43.804Z [TRACE] Stdout is a terminal of width 171
2023-02-08T17:12:43.804Z [TRACE] Stderr is a terminal of width 171
2023-02-08T17:12:43.804Z [TRACE] Stdin is a terminal
2023-02-08T17:12:43.804Z [DEBUG] Attempting to open CLI config file: /Users/sarahfrench/tfc-test-repos/tf-goog-manual-tests/file-doesnt-exist.tfrc
2023-02-08T17:12:43.805Z [DEBUG] Not reading CLI config directory because config location is overridden by environment variable
2023-02-08T17:12:43.805Z [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2023-02-08T17:12:43.805Z [DEBUG] ignoring non-existing provider search directory /Users/sarahfrench/.terraform.d/plugins
2023-02-08T17:12:43.805Z [DEBUG] ignoring non-existing provider search directory /Users/sarahfrench/Library/Application Support/io.terraform/plugins
2023-02-08T17:12:43.805Z [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2023-02-08T17:12:43.806Z [INFO] CLI command args: []string{"plan"}
2023-02-08T17:12:43.811Z [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2023-02-08T17:12:43.811Z [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2023-02-08T17:12:43.811Z [DEBUG] New state was assigned lineage "9d80cefa-2529-b6d9-719f-871df24710e8"
2023-02-08T17:12:43.811Z [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2023-02-08T17:12:43.811Z [TRACE] Meta.Backend: instantiated backend of type <nil>
2023-02-08T17:12:43.813Z [TRACE] providercache.fillMetaCache: scanning directory .terraform/providers
2023-02-08T17:12:43.813Z [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/google v4.51.0 for darwin_arm64 at .terraform/providers/registry.terraform.io/hashicorp/google/4.51.0/darwin_arm64
2023-02-08T17:12:43.813Z [TRACE] providercache.fillMetaCache: including .terraform/providers/registry.terraform.io/hashicorp/google/4.51.0/darwin_arm64 as a candidate package for registry.terraform.io/hashicorp/google 4.51.0
2023-02-08T17:12:43.863Z [DEBUG] checking for provisioner in "."
2023-02-08T17:12:43.863Z [DEBUG] checking for provisioner in "/Users/sarahfrench/go/bin"
2023-02-08T17:12:43.863Z [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend
2023-02-08T17:12:43.866Z [INFO] backend/local: starting Plan operation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment