- Newest
- Most votes
- Most comments
Hi,
You can use AWS SAM CLI tools to create a simple Python Lambda function, build, and invoke it locally to confirm that everything works as expected and you have all 3rd-party library dependencies installed. See Test your application locally for more details.
In general, you don't necessarily need a layer to call additional libraries from your Lambda function. All you need is have them deployed together with your Lambda function handler. Creating a .zip deployment package with dependencies provides an example how to create a zip archive with all dependencies included.
Make sure that your Lambda deployment (or Lambda layer) includes ALL required libraries. For example, if your script references kerykeion
library, which itself depends on a swisseph
library that has not been deployed with the Lambda handler, - it will fail with the error that you reported.
Kind regards,
Relevant content
- asked 2 years ago
- asked 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 3 years ago