kind-napkin-56243
11/24/2025, 4:34 PMutils.ts file and are called from the main index.ts. I'm a relative beginner to TS but for the most part really happy with what I came up with, it's nice and clear compared to a lot of Terraform I've worked on in the past!
This file structure is suggested in the docs (here: https://www.pulumi.com/docs/iac/guides/basics/organizing-projects-stacks/), but in terms of how best to use Typescript language features like types, interfaces, classes and class constructors, I haven't seen many examples out there that go into this. I'd love to draw on some community knowledge if there's resources out there.kind-napkin-56243
11/24/2025, 4:43 PMextraUsers:
user1:
credentials:
type1: true
type2: false
grants:
[...]
user2:
[...]
I came up with something that works for this, but it took me a fair while of tinkering around. I'm sure a more experienced Typescript user knows how to handle these things quite nicely but I bet there's quite a few folks with an ops/infra background who are figuring things out by trial and error and google 🙂little-cartoon-10569
11/24/2025, 7:55 PMsteep-plastic-74107
11/24/2025, 8:18 PMkind-napkin-56243
11/25/2025, 8:56 AM