02/24/2021, 7:23 PM
anyone know of a a faster/better way to test / develop lambdas than needing to do a
pulumi up
every time i want to run the code? it's not super painful but it's not ideal.


02/24/2021, 7:45 PM
i use webpack to zip up the lambda, and then you can upload the lambda through the aws console


02/24/2021, 7:55 PM
If you prefer the CLI (handy for running automatically from your editor), then you could create a new project with just the resources you want to change, and import them?
That would speed up
pulumi up


02/24/2021, 8:02 PM
hmmm... i'm using pulumi's ".CallbackFunction" to avoid having to pack up the lambda myself which complicates that. Otherwise yea that +
aws lambda invoke
cli might have been a decent enough work flow. tenwit: hm that's not a bad idea either, might be a bit of a pain to orchestrate the resource names between the projects ( though i can probably fetch them easily enough ) anyway to get pulumi to hand me the package it's zipping up?
then i could have it make the initial lambda, dump it, use the webpack + invoke idea for rapid dev, copy the changes back over and then pulumi up. (so simple 🙃 )