Is there a way to share logic between Pulumi YAML ...
# general
c
Is there a way to share logic between Pulumi YAML and Go/Python projects? The reason I am asking is because I am starting to realize that coding for Pulumi is harder than the usual scripting or Terraform that most "platform engineers" do. It feels like 90% of our orgs platform can be managed by vanilla Pulumi YAML while the remaining 10% benefit from the control flow in a Pulumi program. It would be easier to hire people if they didn't need to handle the other 10% and instead could just include a library written by other teammembers.
I also feel YAML is a good control against duplicated code, copy pasta and inappropriate application paradigms (ie, writing Pulumi like a REST app)
s
Yes, absolutely! You want to write cross-language components. You can author them in Go or Python and consume them via YAML. This guide explains it. But note that this area of the docs is under active development so some of the information might get moved around in the coming days or weeks: https://www.pulumi.com/docs/iac/guides/building-extending/components/build-a-component/
c
🤦
Thanks - I see now 😄
s
No worries! Any feedback on what would've made this easier to discover is more than welcome.