https://pulumi.com logo
Title
d

damp-fall-55922

06/08/2022, 11:10 PM
is there a path towards utilizing yaml but using custom resources? I really love the yaml experience for end users (engineering teams), but would love to be able to create abstractions for it in the form of ComponentResources in any language
l

limited-rainbow-51650

06/09/2022, 6:30 AM
@damp-fall-55922 yes there is. Do have a look at Pulumi Packages: https://www.pulumi.com/blog/pulumiup-pulumi-packages-multi-language-components/ Once you build your abstractions as a Pulumi Package, these can be consumed in any language, including YAML.
t

tall-librarian-49374

06/09/2022, 6:39 AM
Here is one example: EKS package is defined in TypeScript and used in YAML
d

damp-fall-55922

06/09/2022, 1:43 PM
oh, awesome. I don’t know why I was under the impression that wasn’t possible. is there any info about producing private components, when they’re company-specific?
l

limited-rainbow-51650

06/09/2022, 1:55 PM
@damp-fall-55922 you only need to publish the generated packages in a private package repository and you are all set.
👍 2
a

agreeable-eye-87399

06/15/2022, 9:21 PM
how does the pulumi yaml program know where the published packages are? that’s what I’m missing
l

limited-rainbow-51650

06/16/2022, 6:47 AM
@agreeable-eye-87399 Looking in the README of one of the YAML examples, it looks like you have to manually install the plugins before running Pulumi: https://github.com/pulumi/examples/tree/master/aws-yaml-static-website
t

tall-librarian-49374

06/16/2022, 7:53 AM
Oh, I don’t think the manual installation is required anymore. Pulumi should install the latest plugin version by default based on the types of your YAML resources.
l

limited-rainbow-51650

06/16/2022, 7:55 AM
How does it know where to download the plugin binary from? For instance, how does it know where to look for the pulumiverse/pulumi-astra plugin binary? (Our first published Pulumiverse provider BTW)
t

tall-librarian-49374

06/16/2022, 7:57 AM
That’s a good question - I suspect it defaults to
pulumi
org when searching for a plugin. You would have to specify
pluginDownloadURL
for non-pulumi ones.
l

limited-rainbow-51650

06/16/2022, 7:58 AM
Can I specify
pluginDownloadURL
in my YAML program?
t

tall-librarian-49374

06/16/2022, 7:58 AM