https://pulumi.com logo
#getting-started
Title
# getting-started
s

stale-lamp-8682

01/05/2024, 5:26 PM
Hello, i tried to convert a terraform provider (https://github.com/littlejo/terraform-provider-cilium/) into pulumi provider. I used https://github.com/pulumi/pulumi-tf-provider-boilerplate. But when i do make tfgen, i have:
Copy code
make tfgen
[ -x /usr/local/bin/pulumi ] || curl -fsSL <https://get.pulumi.com> | sh
pulumi plugin install resource random 4.3.1
(cd provider && go build -o /Users/joseph.ligier/clients/perso/pulumi-cilium/bin/pulumi-tfgen-cilium -ldflags "-X <http://github.com/littlejo/pulumi-cilium/provider/pkg/version.Version=0.0.1-alpha.1704462644+44c4b661.dirty|github.com/littlejo/pulumi-cilium/provider/pkg/version.Version=0.0.1-alpha.1704462644+44c4b661.dirty>" <http://github.com/littlejo/pulumi-cilium/provider/cmd/pulumi-tfgen-cilium)|github.com/littlejo/pulumi-cilium/provider/cmd/pulumi-tfgen-cilium)>
# <http://github.com/littlejo/pulumi-cilium/provider|github.com/littlejo/pulumi-cilium/provider>
./resources.go:62:25: cannot use cilium.New(version.Version)() (value of type "<http://github.com/hashicorp/terraform-plugin-framework/provider|github.com/hashicorp/terraform-plugin-framework/provider>".Provider) as *"<http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema>".Provider value in argument to shimv2.NewProvider
make: *** [tfgen] Error 1
What did i miss? 🙂
2 Views