Has anyone tried dynamically bridged TF providers ...
# typescript
g
Has anyone tried dynamically bridged TF providers yet? I am having trouble using them in
yarn workspace
where I have libraries and pulumi projects. I’d like to dynamically generate the provider and store it in the library but the generation requires a pulumi project folder + if I move the generated code, I get this:
Copy code
Error: Cannot find module './package.json'
https://www.pulumi.com/blog/any-terraform-provider/
m
did you edit the path to the dependency that pulumi adds in your program's package.json? eg.
Copy code
},
    "dependencies": {
         ...
        "supabase": "file:sdks/supabase"
    }
}
I have to admit I haven't tried converting one of these local packages into a yarn workspace, but in principle it should work
g
yes, yarn is fine, the problem is pulumi and the generated code https://github.com/pulumi/pulumi-terraform-provider/issues/62#issuecomment-2605954815