Skip to content

A boilerplate for AWS Lambda Python projects with simplified dependency management.

License

Notifications You must be signed in to change notification settings

Levy-Y/aws-serverless-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Lambda Python Template with Library Support

Introduction

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.

Usage

Prerequisites

Ensure the following packages are installed in your Linux environment:

  • python3
  • python3-pip
  • make

Environment Setup

Install the necessary tools using the package manager for your distribution:

Debian/Ubuntu:

sudo apt-get install -y python3 python3-pip make

Fedora:

sudo dnf install -y python3 python3-pip make

Arch Linux:

sudo pacman -Syu python3 python3-pip make

Configuration

  1. Open requirements.txt.
  2. Replace example_library with the actual dependencies required for your project.

Build and Deployment

To package the project, run:

make bundle
# OR
make

This generates package.zip. Upload this file to AWS as a Lambda Layer or use it as your function's deployment package.

License

This project is licensed under the GNU Affero General Public License (AGPL) v3.0.

About

A boilerplate for AWS Lambda Python projects with simplified dependency management.

Topics

Resources

License

Stars

Watchers

Forks