How to add a layer in for my Lambda that containes all the Python dependencies #7562
Unanswered
massimiliano96
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all!
I'm working on a multiple Lambda functions project, I would like to add to my Sam template a layer that contains all the dependencies fo my Lambda functions.
I'm trying with the following code:
where
requirements
folder contains myrequirements.txt
.When I run
sam build --use-container
it actually build my DependenciesLayer, however when I runsam local start-api
I have dependencies import errors.How can I solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions