This message was deleted.
# aws
s
This message was deleted.
s
That's correct - you have to vendor deps under
package/
for a Python Lambda. Some ideas: 1. Use something like Make or https://taskfile.dev/ to vendor your deps before running Pulumi. (This is what I did when I did worked with Lambdas in TF.) 2. Try the pulumi-command provider (https://www.pulumi.com/registry/packages/command/) to run your
pip install
command. Layers are "eh" in my (non-expert, would defer to someone who has done a ton of Lambda development work) opinion. If you have stable dependencies in multiple Lambdas they can be good and will save time in your development feedback cycle, but if they change often, they can become a headache. I'd suggest not using layers until you're sure that your deps are stable and used in multiple places, and then consider Layers.
1
f
Thanks Josh that’s helpful. I did use the command package to do this but coming from a container based world it seems that vendoring is a bit of a step back. Thanks for confirming my assumptions!
👍 1