AWS Lambda does not provide a native mechanism to install external dependencies directly within the console. Dependencies must be packaged as a Lambda Layer or included in the deployment package. This template automates the bootstrapping and packaging process for Python-based Lambda projects using make.
Ensure the following packages are installed in your Linux environment:
- python3
- python3-pip
- make
Install the necessary tools using the package manager for your distribution:
Debian/Ubuntu:
sudo apt-get install -y python3 python3-pip makeFedora:
sudo dnf install -y python3 python3-pip makeArch Linux:
sudo pacman -Syu python3 python3-pip make- Open requirements.txt.
- Replace example_library with the actual dependencies required for your project.
To package the project, run:
make bundle
# OR
makeThis generates package.zip. Upload this file to AWS as a Lambda Layer or use it as your function's deployment package.
This project is licensed under the GNU Affero General Public License (AGPL) v3.0.