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.
curved-jordan-5346
03/19/2026, 1:59 AM
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
stocky-restaurant-98004
03/19/2026, 3:34 AM
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
curved-jordan-5346
03/19/2026, 3:35 AM
🤦
curved-jordan-5346
03/19/2026, 3:35 AM
Thanks - I see now 😄
s
stocky-restaurant-98004
03/19/2026, 3:36 AM
No worries! Any feedback on what would've made this easier to discover is more than welcome.