https://pulumi.com logo
b

boundless-airport-99052

02/25/2020, 8:32 AM
Hello, Today, I’m able to publish pulumi component in a private npm repository in order to reuse them in several pulumi projects, and it works like a charm (thanks pulumi team). As the component are in typescript, we can only reuse them in pulumi typescript project. In a big organisation, we would be able to let some team works in other languages like python. Is there a way to share component for a multi-language use ? May be by generating them ?
t

tall-librarian-49374

02/25/2020, 8:41 AM
Not yet, but we are working on that. 2.0 release should have the foundation for reusing TS libraries in Python. Watch this issue for progress https://github.com/pulumi/pulumi/issues/2430
The idea is that you would have to define a public contract in Python and then the implementation will be delegated to the TS runtime (so, users would need Node to run the components)
b

better-rainbow-14549

02/25/2020, 10:11 AM
will that have any overlap with dynamic resource providers? it makes the stack files prettttty big having the code duplicated twice for every resource of tha ttype
b

boundless-airport-99052

02/25/2020, 10:21 AM
thanks for you answer. Looking forward to test that 👏
t

tall-librarian-49374

02/25/2020, 10:56 AM
@better-rainbow-14549 That’s not closely related to dynamic providers.
👍 1