-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Custom provider built with terraform-plugin-framework does not find resource/data source types with TF 1.6 #33990
Copy link
Copy link
Closed
Description
Terraform Version
1.6.0Terraform Configuration Files
resource "custom_service" "my_service" {
display_name = "Custom Service"
description = "Test Custom Service"
}
Debug Output
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
##### Running 'terraform apply --auto-approve' ################################################################
2023-10-05T13:51:54.060Z [ERROR] provider.terraform-provider-customiam: Response contains error diagnostic: diagnostic_severity=ERROR @caller=github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/internal/diag/diagnostics.go:58 tf_proto_version=6.4 tf_req_id=748e53e1-c5cf-fcc4-135f-563bb7db7de4 tf_rpc=ValidateResourceConfig @module=sdk.proto diagnostic_summary="Resource Type Not Found" tf_provider_addr=app.terraform.io/rbmh-mit/customiam tf_resource_type=example_service diagnostic_detail="No resource type named \"example_service\" was found in the provider." timestamp=2023-10-05T13:51:54.060Z
2023-10-05T13:51:54.060Z [ERROR] provider.terraform-provider-customiam: Response contains error diagnostic: tf_provider_addr=app.terraform.io/rbmh-mit/customiam tf_rpc=ValidateResourceConfig @caller=github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/internal/diag/diagnostics.go:58 tf_req_id=c4075578-dba7-128a-6a2d-7637e983c6a2 @module=sdk.proto diagnostic_detail="No resource type named \"example_service\" was found in the provider." diagnostic_summary="Resource Type Not Found" tf_proto_version=6.4 diagnostic_severity=ERROR tf_resource_type=example_service timestamp=2023-10-05T13:51:54.060Z
2023-10-05T13:51:54.060Z [ERROR] vertex "example_service.example_service1" error: Resource Type Not Found
2023-10-05T13:51:54.060Z [ERROR] vertex "example_service.example_service2" error: Resource Type Not Found
╷
│ Error: Resource Type Not Found
│
│ with example_service.example_service1,
│ on resource-service.tf line 1, in resource "example_service" "example_service1":
│ 1: resource "example_service" "example_service1" {
│
│ No resource type named "example_service" was found in the provider.
Expected Behavior
Provider works fine as it does with Terraform v1.5
Actual Behavior
The same provider binary crashes with errors:
No resource type named "custom_service" was found in the provider
Steps to Reproduce
terraform init
terraform apply
Additional Context
The provider was built this year on top of the latest framework.
https://github.com/hashicorp/terraform-plugin-framework
References
No response
Reactions are currently unavailable