Skip to content

Instantly share code, notes, and snippets.

@bondsbw
Created June 19, 2020 15:41
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 bondsbw/6207bf881f0f7230c4f16c462b89e474 to your computer and use it in GitHub Desktop.
Save bondsbw/6207bf881f0f7230c4f16c462b89e474 to your computer and use it in GitHub Desktop.
Double-nested "external" provider fails
2020/06/19 10:39:30 [INFO] Terraform version: 0.13.0 beta2
2020/06/19 10:39:30 [INFO] Go runtime version: go1.14.2
2020/06/19 10:39:30 [INFO] CLI args: []string{"C:\\ProgramData\\chocolatey\\bin\\terraform.exe", "plan"}
2020/06/19 10:39:30 [DEBUG] Attempting to open CLI config file: C:\Users\bondsb\AppData\Roaming\terraform.rc
2020/06/19 10:39:30 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/06/19 10:39:31 [DEBUG] checking for credentials in "C:\\Users\\bondsb\\AppData\\Roaming\\terraform.d\\plugins"
2020/06/19 10:39:31 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2020/06/19 10:39:31 [DEBUG] will search for provider plugins in C:\Users\bondsb\AppData\Roaming\terraform.d\plugins
2020/06/19 10:39:31 [DEBUG] ignoring non-existing provider search directory C:\Users\bondsb\AppData\Roaming\HashiCorp\Terraform\plugins
2020/06/19 10:39:31 [INFO] CLI command args: []string{"plan"}
2020/06/19 10:39:31 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2020/06/19 10:39:31 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2020/06/19 10:39:31 [DEBUG] New state was assigned lineage "4677820a-dd75-8f6d-49db-d9cdab18c00e"
2020/06/19 10:39:31 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2020/06/19 10:39:31 [TRACE] Meta.Backend: instantiated backend of type <nil>
2020/06/19 10:39:31 [DEBUG] checking for provisioner in "."
2020/06/19 10:39:31 [DEBUG] checking for provisioner in "C:\\ProgramData\\chocolatey\\bin"
2020/06/19 10:39:31 [DEBUG] checking for provisioner in "C:\\Users\\bondsb\\AppData\\Roaming\\terraform.d\\plugins"
2020/06/19 10:39:31 [INFO] Failed to read plugin lock file .terraform\plugins\windows_amd64\lock.json: open .terraform\plugins\windows_amd64\lock.json: The system cannot find the path specified.
2020/06/19 10:39:31 [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend
2020/06/19 10:39:31 [INFO] backend/local: starting Plan operation
2020/06/19 10:39:31 [TRACE] backend/local: requesting state manager for workspace "default"
2020/06/19 10:39:31 [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/06/19 10:39:31 [TRACE] backend/local: requesting state lock for workspace "default"
2020/06/19 10:39:31 [TRACE] statemgr.Filesystem: preparing to manage state snapshots at terraform.tfstate
2020/06/19 10:39:31 [TRACE] statemgr.Filesystem: no previously-stored snapshot exists
2020/06/19 10:39:31 [TRACE] statemgr.Filesystem: locking terraform.tfstate using LockFileEx
2020/06/19 10:39:31 [TRACE] statemgr.Filesystem: writing lock metadata to .terraform.tfstate.lock.info
2020/06/19 10:39:31 [TRACE] backend/local: reading remote state for workspace "default"
2020/06/19 10:39:31 [TRACE] statemgr.Filesystem: reading latest snapshot from terraform.tfstate
2020/06/19 10:39:31 [TRACE] statemgr.Filesystem: snapshot file has nil snapshot, but that's okay
2020/06/19 10:39:31 [TRACE] statemgr.Filesystem: read nil snapshot
2020/06/19 10:39:31 [TRACE] backend/local: retrieving local state snapshot for workspace "default"
2020/06/19 10:39:31 [TRACE] backend/local: building context for current working directory
2020/06/19 10:39:31 [TRACE] terraform.NewContext: starting
2020/06/19 10:39:31 [TRACE] terraform.NewContext: loading provider schemas
2020/06/19 10:39:31 [TRACE] LoadSchemas: retrieving schema for provider type "registry.terraform.io/hashicorp/external"
2020/06/19 10:39:31 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info
Error: Could not load plugin2020/06/19 10:39:31 [TRACE] statemgr.Filesystem: unlocked by closing terraform.tfstate
Plugin reinitialization required. Please run "terraform init".
Plugins are external binaries that Terraform uses to access and manipulate
resources. The configuration provided requires plugins which can't be located,
don't satisfy the version constraints, or are otherwise incompatible.
Terraform automatically discovers provider requirements from your
configuration, including providers used in child modules. To see the
requirements and constraints, run "terraform providers".
Failed to instantiate provider "registry.terraform.io/hashicorp/external" to
obtain schema: unknown provider "registry.terraform.io/hashicorp/external"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment