Skip to content

Instantly share code, notes, and snippets.

@dornfeder
Created September 28, 2022 08:36
Show Gist options
  • Save dornfeder/fd9104918f5d891fd48b593e4a96d5d2 to your computer and use it in GitHub Desktop.
Save dornfeder/fd9104918f5d891fd48b593e4a96d5d2 to your computer and use it in GitHub Desktop.
terraform output trace
$ export TF_LOG=trace && terraform output -json
2022-09-28T09:29:24.730+0200 [INFO] Terraform version: 1.3.0
2022-09-28T09:29:24.875+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.9.0
2022-09-28T09:29:24.875+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.14.0
2022-09-28T09:29:24.876+0200 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2022-09-28T09:29:24.876+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2022-09-28T09:29:24.876+0200 [DEBUG] using github.com/zclconf/go-cty v1.11.0
2022-09-28T09:29:24.876+0200 [INFO] Go runtime version: go1.19.1
2022-09-28T09:29:24.877+0200 [INFO] CLI args: []string{"C:\\ProgramData\\chocolatey\\lib\\terraform\\tools\\terraform.exe", "output", "-json"}
2022-09-28T09:29:24.878+0200 [TRACE] Stdout is a terminal of width 142
2022-09-28T09:29:24.878+0200 [TRACE] Stderr is a terminal of width 142
2022-09-28T09:29:24.878+0200 [TRACE] Stdin is a terminal
2022-09-28T09:29:24.885+0200 [DEBUG] Attempting to open CLI config file: C:\Users\admin\AppData\Roaming\terraform.rc
2022-09-28T09:29:24.886+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022-09-28T09:29:24.887+0200 [INFO] Loading CLI configuration from C:\Users\admin\AppData\Roaming\terraform.d\credentials.tfrc.json
2022-09-28T09:29:24.889+0200 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022-09-28T09:29:24.889+0200 [DEBUG] ignoring non-existing provider search directory C:\Users\admin\AppData\Roaming\terraform.d\plugins2022-09-28T09:29:24.893+0200 [DEBUG] ignoring non-existing provider search directory C:\Users\admin\AppData\Roaming\HashiCorp\Terraform\plugins
2022-09-28T09:29:24.894+0200 [INFO] CLI command args: []string{"output", "-json"}
2022-09-28T09:29:24.905+0200 [TRACE] Meta.Backend: BackendOpts.Config not set, so using settings loaded from :0,0-0
2022-09-28T09:29:24.906+0200 [TRACE] Meta.Backend: built configuration for "cloud" backend with hash value 3873314069
2022-09-28T09:29:24.908+0200 [TRACE] Preserving existing state lineage "5664714c-7112-2ced-ce58-f93d0e43ca34"
2022-09-28T09:29:24.908+0200 [TRACE] Preserving existing state lineage "5664714c-7112-2ced-ce58-f93d0e43ca34"
2022-09-28T09:29:24.908+0200 [TRACE] Meta.Backend: working directory was previously initialized for "cloud" backend
2022-09-28T09:29:24.909+0200 [TRACE] Meta.Backend: using already-initialized, unchanged "cloud" backend configuration
2022-09-28T09:29:24.910+0200 [DEBUG] Service discovery for app.terraform.io at https://app.terraform.io/.well-known/terraform.json
2022-09-28T09:29:24.910+0200 [TRACE] HTTP client GET request to https://app.terraform.io/.well-known/terraform.json
2022-09-28T09:29:25.995+0200 [TRACE] Meta.Backend: instantiated backend of type *cloud.Cloud
2022-09-28T09:29:25.996+0200 [TRACE] providercache.fillMetaCache: scanning directory .terraform\providers
2022-09-28T09:29:25.998+0200 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/azurerm v3.10.0 for windows_amd64 at .terraform\providers\registry.terraform.io\hashicorp\azurerm\3.10.0\windows_amd64
2022-09-28T09:29:26.000+0200 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/azurerm v3.15.0 for windows_amd64 at .terraform\providers\registry.terraform.io\hashicorp\azurerm\3.15.0\windows_amd64
2022-09-28T09:29:26.002+0200 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/null v3.1.1 for windows_amd64 at .terraform\providers\registry.terraform.io\hashicorp\null\3.1.1\windows_amd64
2022-09-28T09:29:26.003+0200 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/tfe v0.33.0 for windows_amd64 at .terraform\providers\registry.terraform.io\hashicorp\tfe\0.33.0\windows_amd64
2022-09-28T09:29:26.005+0200 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/tfe v0.34.0 for windows_amd64 at .terraform\providers\registry.terraform.io\hashicorp\tfe\0.34.0\windows_amd64
2022-09-28T09:29:26.007+0200 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/tfe v0.36.1 for windows_amd64 at .terraform\providers\registry.terraform.io\hashicorp\tfe\0.36.1\windows_amd64
2022-09-28T09:29:26.007+0200 [TRACE] providercache.fillMetaCache: including .terraform\providers\registry.terraform.io\hashicorp\azurerm\3.10.0\windows_amd64 as a candidate package for registry.terraform.io/hashicorp/azurerm 3.10.0
2022-09-28T09:29:26.008+0200 [TRACE] providercache.fillMetaCache: including .terraform\providers\registry.terraform.io\hashicorp\azurerm\3.15.0\windows_amd64 as a candidate package for registry.terraform.io/hashicorp/azurerm 3.15.0
2022-09-28T09:29:26.008+0200 [TRACE] providercache.fillMetaCache: including .terraform\providers\registry.terraform.io\hashicorp\null\3.1.1\windows_amd64 as a candidate package for registry.terraform.io/hashicorp/null 3.1.1
2022-09-28T09:29:26.009+0200 [TRACE] providercache.fillMetaCache: including .terraform\providers\registry.terraform.io\hashicorp\tfe\0.33.0\windows_amd64 as a candidate package for registry.terraform.io/hashicorp/tfe 0.33.0
2022-09-28T09:29:26.009+0200 [TRACE] providercache.fillMetaCache: including .terraform\providers\registry.terraform.io\hashicorp\tfe\0.34.0\windows_amd64 as a candidate package for registry.terraform.io/hashicorp/tfe 0.34.0
2022-09-28T09:29:26.010+0200 [TRACE] providercache.fillMetaCache: including .terraform\providers\registry.terraform.io\hashicorp\tfe\0.36.1\windows_amd64 as a candidate package for registry.terraform.io/hashicorp/tfe 0.36.1
2022-09-28T09:29:26.084+0200 [TRACE] providercache.fillMetaCache: using cached result from previous scan of .terraform\providers
2022-09-28T09:29:26.498+0200 [DEBUG] checking for provisioner in "."
2022-09-28T09:29:26.499+0200 [DEBUG] checking for provisioner in "C:\\ProgramData\\chocolatey\\lib\\terraform\\tools"
2022-09-28T09:29:26.500+0200 [TRACE] Meta.Backend: backend *cloud.Cloud supports operations
{
"test1": {
"sensitive": false,
"type": [
"object",
{
"rgp_name": "string",
"rgp_location": "string"
}
],
"value": {
"rgp_name": null,
"rgp_location": null
}
},
"test2": {
"sensitive": false,
"type": "string",
"value": "example"
},
"test3": {
"sensitive": true,
"type": "string",
"value": "West Europe"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment