I love it. We have the beginnings of some helpers here, https://github.com/pulumi/pulumi-aws/blob/master/overlays/nodejs/iam/documents.ts, that give you TypeScript schema, so at least you get type-checking. There are three missing pieces, though
1. It's incomplete
2. As you say, factory functions could really cut down on boilerplate
3. The resource types, for the most part, still take JSON serialized strings, so you can't just pass instances directly
To fully address 3, we'd need to do https://github.com/pulumi/pulumi-terraform/issues/10, which I know @microscopic-pilot-97530 had looked into at some point but I don't think we ever made progress.
s
stocky-spoon-28903
07/14/2018, 5:48 PM
I’ll open a pull request for that change then - it’s added to
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.