prehistoric-egg-84122
09/25/2025, 1:13 AMLocalWorkspace
to run stacks.
We'd like to understand: Is there any way for LocalWorkspace
to directly consume a Pulumi program (or ComponentResource template) from a remote Git repository?
Or is it inevitable that we must always bundle Pulumi code inside our application source (or manually clone the repo before calling LocalWorkspace
)?
⢠(we're also considering using npm packages (or similar package managers) to distribute Pulumi components, but we're curious if this is a generally recommended best practice for this use case)
To rephrase: In the OSS-only setup (without Pulumi Deployments or RemoteWorkspace), are users expected to always embed Pulumi programs locally, or is there a recommended pattern for reusing templates/components maintained in separate repositories?
Any guidance or best practices would be greatly appreciated.little-cartoon-10569
09/25/2025, 2:19 AMechoing-dinner-19531
09/25/2025, 8:23 AMdirectly consume a Pulumi program (or ComponentResource template) from a remote Git repository?Internally it would just have to download it locally to run it anyway. You can just scaffold that around AutomationAPI yourself, with the benefit of downloading whatever from where ever rather than just sources that we've added support for.
prehistoric-egg-84122
09/26/2025, 8:47 AMprehistoric-egg-84122
09/26/2025, 8:51 AMpulumi --profiling
option, the memory profiling results (e.g., xxx.mem) were generated after the stack operation completed, not at the peak resource usage point during resource provisioning. This made it difficult to pinpoint the exact cause of the issueechoing-dinner-19531
09/26/2025, 10:29 AMHowever, it would be great if we could accurately understand how Pulumi plugins (including the AWS plugin) work or what operations they perform.The engine starts a new provider process up for each provider declared in the program, plus the default provider. Most plugins are pretty simple just transforming pulumi resource requests into the given clouds API requests. I know they take a lot of memory to hold all the mappings of how to go from pulumi shapes to api shapes but that should be a fixed size. I don't think they should have a lot of dynamic memory requirements.
he memory profiling resultsDid you look at that with pprof? I thought it collected samples for the whole program not just the end.
prehistoric-egg-84122
09/29/2025, 1:37 PM/ # ps -eo pid,ppid,rss,vsz,comm | grep pulumi
450 1 80m 1.2g pulumi
/ # ps -eo pid,ppid,rss,vsz,comm | grep pulumi
450 1 92m 1.2g pulumi
474 450 45m 750m pulumi-resource
/ # ps -eo pid,ppid,rss,vsz,comm | grep pulumi
450 1 112m 1.3g pulumi
474 450 62m 751m pulumi-resource
491 450 289m 2.0g pulumi-resource
/ # ps -eo pid,ppid,rss,vsz,comm | grep pulumi
450 1 112m 1.3g pulumi
474 450 63m 751m pulumi-resource
491 450 310m 2.0g pulumi-resource
/ # ps -eo pid,ppid,rss,vsz,comm | grep pulumi
450 1 112m 1.3g pulumi
474 450 63m 751m pulumi-resource
491 450 350m 2.0g pulumi-resource
/ # ps -eo pid,ppid,rss,vsz,comm | grep pulumi
450 1 117m 1.3g pulumi
474 450 63m 751m pulumi-resource
491 450 422m 2.0g pulumi-resource
519 450 106m 1.9g pulumi-resource
/ # ps -eo pid,ppid,rss,vsz,comm | grep pulumi
450 1 117m 1.3g pulumi
474 450 63m 751m pulumi-resource
491 450 427m 2.0g pulumi-resource
519 450 309m 2.0g pulumi-resource
/ # ps -eo pid,ppid,rss,vsz,comm | grep pulumi
450 1 117m 1.3g pulumi
474 450 63m 751m pulumi-resource
491 450 430m 2.0g pulumi-resource
519 450 322m 2.0g pulumi-resource
/ # ps -eo pid,ppid,rss,vsz,comm | grep pulumi
450 1 117m 1.3g pulumi
474 450 63m 751m pulumi-resource
491 450 430m 2.0g pulumi-resource
519 450 428m 2.0g pulumi-resource
544 450 210m 1.9g pulumi-resource
/ # ps -eo pid,ppid,rss,vsz,comm | grep pulumi
450 1 117m 1.3g pulumi
474 450 63m 751m pulumi-resource
491 450 430m 2.0g pulumi-resource
519 450 428m 2.0g pulumi-resource
544 450 319m 2.0g pulumi-resource
/ # ps -eo pid,ppid,rss,vsz,comm | grep pulumi
450 1 117m 1.3g pulumi
474 450 63m 751m pulumi-resource
491 450 430m 2.0g pulumi-resource
519 450 428m 2.0g pulumi-resource
544 450 317m 2.0g pulumi-resource
echoing-dinner-19531
09/29/2025, 1:54 PMlittle-cartoon-10569
09/29/2025, 10:04 PMprehistoric-egg-84122
09/30/2025, 12:51 AM