:wave: I’m trying to use the tf-provider-boilerpla...
# general
b
👋 I’m trying to use the tf-provider-boilerplate to implement a Pulumi TF Package. My TF Provider uses the terraform-sdk v2, whereas the boilerplate uses v1. Is there a way to bridge a Terraform SDK v2 provider?
b
yes this is possible, which provider are you trying to bridge?
It’s unconventionally named, but I think I got all the imports and references sorted.
Copy code
./resources.go:93:43: cannot use "<http://github.com/gravitational/teleport-plugins/terraform/provider|github.com/gravitational/teleport-plugins/terraform/provider>".Provider() (type *"<http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema>".Provider) as type *"<http://github.com/hashicorp/terraform-plugin-sdk/helper/schema|github.com/hashicorp/terraform-plugin-sdk/helper/schema>".Provider in argument to sdkv1.NewProvider
b
Hmm I wonder if @broad-dog-22463 has any ideas, been a while since I did this
b
Unrelated, this one doesn’t use the Terraform SDK, so it won’t translate as magically, right?
b
That’s right, only terraform sdk providers are supported
1
b
I think I got it building with shim/sdk-v2.
go get
works at least.