1 Answer
- Newest
- Most votes
- Most comments
0
Your project, and therefore, your template file, may include multiple Lambda functions, each in its own sub folder. You usually place your template.yaml file in the root of the project, i.e., <project-dir>/template.yaml
.
If your functions are located in <project-dir>/src/function1
and <project-dir>/src/function2,
you will use in the CodeUri
the root of the function itself, i.e., for the first function you will specify <project-dir>/src/function1
and for the second <project-dir>/src/function2
. For the Handler
you will specify the name of the file and the name of the handler, e.g., app.lambda_handler
(where app.py
is the file that contains the handler function, which is called lambda_handler
)
Relevant content
- asked 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 8 months ago