sparse-intern-71089
06/05/2022, 6:46 PMstocky-restaurant-98004
06/06/2022, 5:25 PMpackage/
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.full-receptionist-30203
06/06/2022, 5:29 PMNo 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