It's just a standard typescript program, you can write functions in other files and then just call them from the main entrypoint file. https://github.com/pulumi/examples/tree/master/aws-apigateway-ts-routes is an example showing an index.ts which imports and calls functions in other files (like dns.ts) to setup more things than would be clean to all have in one file.
d
dry-kangaroo-89921
05/09/2023, 1:25 PM
Do you maybe have some other repos that showcase some of the best practices in pulumi with typescript?
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.