Lambda External Dependencies
- To use npm or pip from AWS Lambda
- Two ways
- You need to install the package alongside with your code and zip it together.
- Upload the zip to Lambda if less than 50 MB. Else upload to S3 first.
- Native libraries work but they need to complied on Amazon Linux
- Use Lambda Layers
- You need to install the package alongside with your code and zip it together.