https://pulumi.com logo
Title
h

hundreds-yacht-71603

10/12/2022, 12:46 PM
Hello, I'm looking at authoring a package. In CDK I have to write it in TypeScript, if I want all the other languages to make use of it. Is there a similar concept in Pulumi or do Packages (component resources right now) have to exist in all the languages that want to use it?
l

limited-rainbow-51650

10/12/2022, 1:07 PM
@hundreds-yacht-71603 no, with Pulumi, you author your components in a single language of your choice, but from the set Pulumi supports right now. The core of a Pulumi package is our Pulumi schema which defines the types, the resources and possibly any functions (like the various
getXXX
functions in the providers). From this schema, we can generate SDKs for every of the programming languages supported by Pulumi, but you can decide which ones you need. See here for a starter: https://www.pulumi.com/docs/guides/pulumi-packages/
Here are two examples where we used this very setup to deliver a Pulumi Package for custom components: • https://www.pulumi.com/registry/packages/awsx/https://www.pulumi.com/registry/packages/eks/
h

hundreds-yacht-71603

10/12/2022, 1:55 PM
Thanks, I'll totally steal as much as I can from these 🙂
b

billowy-army-68599

10/12/2022, 1:57 PM
here’s some more: https://github.com/jaxxstorm/pulumi-aws-securebaseline (ts) https://github.com/jaxxstorm/pulumi-aws-securebaseline: (go) @hundreds-yacht-71603 I’ve written a bunch of these, so please let me know if I can help