https://pulumi.com logo
Title
a

adamant-wire-24627

04/16/2021, 12:06 AM
Hi team, I am new to Pulumi, now I am trying to convert a Terraform provider into Pulumi provider,I finished the code generation part, but I am stuck in how to install this plugin to move on to
tf2pulumi
command. It complained that
error: no resource plugin 'testProvider' found in the workspace or on your $PATH
. I am wondering that is there any document about how to fix this? Thanks!
r

ripe-shampoo-80285

04/16/2021, 12:11 AM
What language are you using? Do you have nodejs installed?
a

adamant-wire-24627

04/16/2021, 12:16 AM
Thanks for answering my question. I am using TypeScript, yes, I have. I want to understand if it is possible to install a local plugin
r

ripe-shampoo-80285

04/16/2021, 6:02 PM
What system are you on? Last time I used the tool was when I was on MacOS and there is a brew package for it. I thought the tool was implemented in nodejs. That is why I asked if you have nodejs installed. Apparently, I guessed wrong. Just did a quick search. It is implemented in Golang. If you are not on MacOS, you will need to download from the repo, and build it. You will need to have Go installed on you system: https://github.com/pulumi/tf2pulumi Pulumi is a great tool, but unfortunately the folks at Pulumi seems to be a little too busy to answer some of the questions raised here in the slack channel. I wish they could be a little more active here. That can really make difference in the adoption of this great tool. I just cloned the repo and built in on Windows 10. It worked like a charm. Anyway, good luck with you Puluming... Let me know if you need further help.
a

adamant-wire-24627

04/17/2021, 12:16 AM
Thank you Phil. I should made my question more clear.
I am working on the Ubuntu, The process I am working on is like: 1. Write a Terraform provider; 2. Use pulumi bridge (and biolerplate) to generate pulumi SDK and runtime library; I have the code compiled and binary installed; 3. Trying to translate my tf file (with the provider I wrote) by using tf2pulumi, then it complains cannot find the resource plugin. I am confused what the meaning of the plugin, did I miss something? It will be great that if you can share me some process that how to make self-made provider work for tf2pulumi. And, I totally agree with you that Pulumi is a great tool, and that's the reason why they need community to make things better lol.
Thank you Phil, I think I addressed this issue by copy build binary to
.pulumi/plugins/
, thank you for your kind support!
r

ripe-shampoo-80285

04/17/2021, 1:15 AM
Cool, Yao. Good to know you solved the issue!
a

adamant-wire-24627

04/17/2021, 1:18 AM
yeah, thanks!
r

ripe-shampoo-80285

04/17/2021, 1:22 AM
Anytime, Yao. Actually, I learned something new from you 🙂
a

adamant-wire-24627

04/17/2021, 1:43 AM
Haha I should send MR to improve documentation 🙂 Thank you Phil.