Skip to content

Tutorial Implement a provider with the Terraform Plugin Framework seems to be outdated #1530

@DocentSzachista

Description

@DocentSzachista

Product

Terraform

Issue type

Other issue

Describe your issue to request changes to the content on developer.hashicorp.com. Be specific and provide as much detail as possible. Include page URLs and screenshots if applicable.

Bug is related to Implement a provider with the Terraform Plugin Framework website. I followed every instruction before problematic one to the letter.

Where is the problem

When I run terraform plan as indicated here I receive following error:

│ Error: Inconsistent dependency lock file
│ 
│ The following dependency selections recorded in the lock file are inconsistent with the current configuration:
│   - provider hashicorp.com/edu/hashicups: required by this configuration but no version is selected
│ 
│ To make the initial dependency selections that will initialize the dependency lock file, run:
│   terraform init
╵

I did what the information said and after invoking terraform init I received following error:

- Finding latest version of hashicorp.com/edu/hashicups...
╷
│ Error: Failed to query available provider packages
│ 
│ Could not retrieve the list of available versions for provider hashicorp.com/edu/hashicups: could not connect to
│ hashicorp.com: failed to request discovery document: 429 Too Many Requests
│ 
│ To see which modules are currently depending on hashicorp.com/edu/hashicups and what versions are specified, run the following
│ command:
│     terraform providers

which looks like that the terraform does not respect the change that I have done in .terraformrc file (contents of it below) saved under home directory (~). So I guess either way the tutorial page is outdated or some steps are not mentioned.

provider_installation {

  dev_overrides {
      "hashicorp.com/edu/hashicups" = "/home/doc/go/bin"
  }

  # For all other providers, install them directly from their origin provider
  # registries as normal. If you omit this, Terraform will _only_ use
  # the dev_overrides block, and so no other providers will be available.
  direct {}
}

My system specs

os:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:        22.04
Codename:       jammy

terraform version:

Terraform v1.14.3
on linux_amd64

Golang version:

go version go1.25.5 linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions