Skip to content

Instantly share code, notes, and snippets.

@varac
Created January 8, 2021 12:44
Show Gist options
  • Save varac/a622a4aa03b909a8159815553c8b4cca to your computer and use it in GitHub Desktop.
Save varac/a622a4aa03b909a8159815553c8b4cca to your computer and use it in GitHub Desktop.
tf init
❯ TF_LOG=trace tf init
2021/01/08 13:44:06 [INFO] Terraform version: 0.14.4
2021/01/08 13:44:06 [INFO] Go runtime version: go1.15.6
2021/01/08 13:44:06 [INFO] CLI args: []string{"/usr/bin/terraform", "init"}
2021/01/08 13:44:06 [DEBUG] Attempting to open CLI config file: /home/varac/projects/config-management/terraform/filesystem_mirror/.terraformrc
2021/01/08 13:44:06 Loading CLI configuration from /home/varac/projects/config-management/terraform/filesystem_mirror/.terraformrc
2021/01/08 13:44:06 [DEBUG] Not reading CLI config directory because config location is overridden by environment variable
2021/01/08 13:44:06 [DEBUG] checking for credentials in "/home/varac/.terraform.d/plugins"
2021/01/08 13:44:06 [DEBUG] Explicit provider installation configuration is set
2021/01/08 13:44:06 [TRACE] Selected provider installation method cliconfig.ProviderInstallationFilesystemMirror("$HOME/.terraform.d/providers") with includes [] and excludes []
2021/01/08 13:44:06 [INFO] CLI command args: []string{"init"}
2021/01/08 13:44:06 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2021/01/08 13:44:06 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2021/01/08 13:44:06 [DEBUG] New state was assigned lineage "5562362f-706d-0a4d-3f66-ee315bd4b7d7"
2021/01/08 13:44:06 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2021/01/08 13:44:06 [TRACE] Meta.Backend: instantiated backend of type <nil>
2021/01/08 13:44:06 [DEBUG] checking for provisioner in "."
Initializing the backend...
2021/01/08 13:44:06 [DEBUG] checking for provisioner in "/usr/bin"
2021/01/08 13:44:06 [DEBUG] checking for provisioner in "/home/varac/.terraform.d/plugins"
2021/01/08 13:44:06 [INFO] Failed to read plugin lock file /home/varac/.terraform.d/data/plugins/linux_amd64/lock.json: open /home/varac/.terraform.d/data/plugins/linux_amd64/lock.json: no such file or directory
2021/01/08 13:44:06 [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend
2021/01/08 13:44: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
2021/01/08 13:44:06 [TRACE] statemgr.Filesystem: reading initial snapshot from terraform.tfstate
2021/01/08 13:44:06 [TRACE] statemgr.Filesystem: snapshot file has nil snapshot, but that's okay
2021/01/08 13:44:06 [TRACE] statemgr.Filesystem: read nil snapshot
2021/01/08 13:44:06 [TRACE] getproviders.SearchLocalDirectory: failed to resolve symlinks for $HOME/.terraform.d/providers: lstat $HOME: no such file or directory
Initializing provider plugins...
- Finding hashicorp/template versions matching "2.2.0"...
Error: Failed to query available provider packages
Could not retrieve the list of available versions for provider
hashicorp/template: cannot search $HOME/.terraform.d/providers: lstat
$HOME/.terraform.d/providers: no such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment