Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Levy-Y/aws-serverless-starter

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
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

Stars

Watchers

Forks

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.