Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No data source type named "scaffolding_example" was found in the provider #34016

Closed
freakinhippie opened this issue Oct 6, 2023 · 4 comments
Closed
Labels
bug duplicate issue closed because another issue already tracks this problem

Comments

@freakinhippie
Copy link

freakinhippie commented Oct 6, 2023

Terraform Version

Terraform v1.6.0
on linux_amd64

Terraform Configuration Files

terraform {
  required_providers {
    scaffolding = {
      source = "hashicorp.com/edu/hashicups-pf"
    }
  }
}

data "scaffolding_example" "example" {
  configurable_attribute = "some-value"
}

Debug Output

https://gist.github.com/freakinhippie/f3339ae79b7de7795d91eb72f47ba9a1

Expected Behavior

The plan should succeed.

Actual Behavior


│ Warning: Provider development overrides are in effect

│ The following provider development overrides are set in the CLI configuration:
│ - hashicorp.com/edu/hashicups-pf in ../../..

│ The behavior may therefore not match any released version of the provider and applying changes may cause the state to become incompatible with published releases.


│ Error: Data Source Type Not Found

│ with data.scaffolding_example.example,
│ on data-source.tf line 1, in data "scaffolding_example" "example":
│ 1: data "scaffolding_example" "example" {

│ No data source type named "scaffolding_example" was found in the provider.

Steps to Reproduce

These steps assume a working go installation, and the last step relies on jq.

  1. git clone https://github.com/hashicorp/terraform-provider-scaffolding-framework
  2. mv terraform-provider-scaffolding-framework terraform-provider-hashicups-pf
  3. cd terraform-provider-hashicups-pf
  4. go mod tidy
  5. go build -o terraform-provider-hashicups-pf
  6. cd examples/data-sources/scaffolding_example/
  7. echo -e 'provider_installation {\n dev_overrides {\n "hashicorp.com/edu/hashicups-pf" = "../../../"\n }\n direct {}\n}' | tee development.tfrc
  8. echo -e 'terraform {\n required_providers {\n scaffolding = {\n source = "hashicorp.com/edu/hashicups-pf"\n }\n }\n}' | tee terraform.tf
  9. export TF_CLI_CONFIG_FILE=development.tfrc
  10. terraform version
  11. terraform plan
  12. terraform providers schema -json | jq '.provider_schemas | to_entries[] | .value.data_source_schemas | keys'

Additional Context

The same reproduction steps work properly with terraform v1.5.7.

> ~/bin/terraform-1.5.7 version
Terraform v1.5.7
on linux_amd64

Your version of Terraform is out of date! The latest version
is 1.6.0. You can update by downloading from https://www.terraform.io/downloads.html

> ~/bin/terraform-1.5.7 plan
╷
│ Warning: Provider development overrides are in effect
│ 
│ The following provider development overrides are set in the CLI configuration:
│  - hashicorp.com/edu/hashicups-pf in ../../..
│ 
│ The behavior may therefore not match any released version of the provider and applying changes may cause the state to become incompatible with published releases.
╵
data.scaffolding_example.example: Reading...
data.scaffolding_example.example: Read complete after 0s [id=example-id]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.

References

No response

@freakinhippie freakinhippie added bug new new issue not yet triaged labels Oct 6, 2023
@Golvanig
Copy link

Golvanig commented Oct 7, 2023

I do have the same issue with a "provider" (developed with Terraform Plugin Framework) which works with 1.5.7 and cannot find my resources with 1.6

@dhohengassner
Copy link

guess this is a duplicate of #33990

which is continued here: hashicorp/terraform-plugin-framework#853

@jbardin
Copy link
Member

jbardin commented Oct 9, 2023

Duplicate of #33990

@jbardin jbardin marked this as a duplicate of #33990 Oct 9, 2023
@jbardin jbardin closed this as completed Oct 9, 2023
@crw crw added duplicate issue closed because another issue already tracks this problem and removed new new issue not yet triaged labels Oct 9, 2023
Copy link
Contributor

github-actions bot commented Dec 9, 2023

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug duplicate issue closed because another issue already tracks this problem
Projects
None yet
Development

No branches or pull requests

5 participants