Hey, i'm unsure if that's the correct channel to a...
# golang
s
Hey, i'm unsure if that's the correct channel to ask that but i'm trying to convert Terraform's DYN provider to pulumi via pulumi-tf-provider-boilerplate and i'm encountering this error while building the provider:
Copy code
(venv)  morz@morz-5480  ~/git/pulumi-dyn   master ±  make
===========
dyn Package
===========
BUILD:
[ -x /home/adirc/.pulumi/bin/pulumi ] || curl -fsSL <https://get.pulumi.com> | sh
cd provider && go install -ldflags "-X <http://github.com/pulumi/pulumi-dyn/provider/pkg/version.Version=v0.0.1-alpha.1593782371+g931a267.dirty|github.com/pulumi/pulumi-dyn/provider/pkg/version.Version=v0.0.1-alpha.1593782371+g931a267.dirty>" <http://github.com/pulumi/pulumi-dyn/provider/cmd/pulumi-tfgen-dyn|github.com/pulumi/pulumi-dyn/provider/cmd/pulumi-tfgen-dyn>
# <http://github.com/pulumi/pulumi-dyn/provider|github.com/pulumi/pulumi-dyn/provider>
./resources.go:90:21: impossible type assertion:
        "<http://github.com/hashicorp/terraform-plugin-sdk/helper/schema|github.com/hashicorp/terraform-plugin-sdk/helper/schema>".Provider does not implement "<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".ResourceProvider (wrong type for Apply method)
                have Apply(*"<http://github.com/hashicorp/terraform-plugin-sdk/terraform|github.com/hashicorp/terraform-plugin-sdk/terraform>".InstanceInfo, *"<http://github.com/hashicorp/terraform-plugin-sdk/terraform|github.com/hashicorp/terraform-plugin-sdk/terraform>".InstanceState, *"<http://github.com/hashicorp/terraform-plugin-sdk/terraform|github.com/hashicorp/terraform-plugin-sdk/terraform>".InstanceDiff) (*"<http://github.com/hashicorp/terraform-plugin-sdk/terraform|github.com/hashicorp/terraform-plugin-sdk/terraform>".InstanceState, error)
                want Apply(*"<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".InstanceInfo, *"<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".InstanceState, *"<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".InstanceDiff) (*"<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".InstanceState, error)
Makefile:75: recipe for target 'tfgen' failed
make: *** [tfgen] Error 2
seems to be unrelated to my changes, is it possible that terraform changed their schema or something else that could cause it to break? Thanks 🙂
b
hey! we only support terraform providers that are using the terraform plugin sdk, I just checked this provider and it doesn't actually use it, it seems quite outdated 😞
s
@billowy-army-68599 is there any way to make it work regardless? without terraform-plugin-sdk? it's quite important for my company and we prefer not to write a pulumi dynamic provider with a new flow via dyn api thanks :)
b
I don't think there is, @broad-dog-22463 any ideas?
b
there is not 😕
our codegen relies on the newer provider structure
AFAICR dyn is one of those providers that will not get upgraded as the dyn service was out on life support right?
b
i believe it's been retired yes
s
as far as i know dyn has extended it for 2 more years anyway that's a real shame.... guess i'll have to go dynamic provider with api requests... thanks for the help