sparse-intern-71089
12/16/2019, 10:29 PMwhite-balloon-205
Does Pulumi work if you split index.ts into multiple modules?Yes - though of course you then have to import those modules into your
index.ts
(standard Node.js loader rules).
the modules it await import() internally are not included in the zip.If you are dynamically loading something, you will in general need to use
extraIncludePaths
and/or extraIncludePackages
. This is about what get's packaged into a Lambda, not really about what gets run by Pulumi at deployment time.
See https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/runtime/closure/#CodePathOptions-extraIncludePackages.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.
Powered by