https://pulumi.com logo
#general
Title
# general
m

mammoth-elephant-55302

02/03/2020, 6:13 PM
Also is there a null resource plugin for pulumi? I'm trying to run tf2pulumi on some Terraform modules. Maybe I can go into the .Terraform folder
w

white-balloon-205

02/03/2020, 6:59 PM
There is not a null resource in Pulumi currently. Null resources in Terraform are typically used for some sceondary reason - like running a local exec. There are approaches you can take for each of these use-cases in Pulumi - but they are somewhat less exactly 1:1 with Terraform than many other areas. In general, during conversion you will need to write custom code to replace uses of null resources. If you can share an example of one of your null resources, someone here may be able to point to what can be used to accomplish a similar goal in Pulumi.
m

mammoth-elephant-55302

02/03/2020, 7:37 PM
Well it's not my module. It's an imported module so I'm guessing I will have to find all the references within the .Terraform folder... 🤔
It would be nice if it was a warning rather than error so at least tf2pulumi could provide a useful output
w

white-balloon-205

02/03/2020, 9:33 PM
It would be nice if it was a warning rather than error so at least tf2pulumi could provide a useful output
Indeed. In fact, I thought that was already the case. What error exactly do you see? Does
--allow-missing-plugins
or
--allow-missing-variables
help?
m

mammoth-elephant-55302

02/04/2020, 7:53 AM
yes.
--allow-missing-plugins
and
--allow-missing-variables
helps a lot