Very cool, since serverless handles the bundling of the application prior to deploying it, is there a process or tool to have pulumi do the same?
hundreds-school-49273
05/16/2019, 5:09 PM
Something like pulumi.builder.Rollup that could bundle the application to an archive that pulumi can use? With some sort of knowledge on whether it needs to be re-bundled in the first place.
w
white-balloon-205
05/16/2019, 5:11 PM
The code there more or less does that already - the
AssetArchive
you see there builds an archive from code in the filesystem, and this will be incremental (if there are no diffs on the filesystem, there will not be a diff on this resource and the Lambda will not need to be redeployed).
There is somewhat less "middleware" in this process - for example, we don't have a built-in mechanism to kick off a build prior to packaging, etc. That's something that would be really nice to add as a library on top of this.
h
hundreds-school-49273
05/16/2019, 5:15 PM
Do you have a plugin system or hooks into any middleware process now if I develop something that can package the app prior to deployment? I use serverless for everything now, but the giant YAML files with a mix of cloudformation is so frustrating. Pulumi seems to be in the perfect spot to solve this if I can solve for the packaging problem.
hundreds-school-49273
05/16/2019, 5:25 PM
Pulumi shouldn't be burdened with all the complex bundling workflows, so I imagine it would be a way to spawn a process as part of packaging but can tap into pulumi state. The separate process could do anything as long as it returned an error or a zip file.
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.