Skip to content

AWS Layer PyPacker is a tool to create AWS Lambda Layers for Python3.7 packages with AWS Linux docker image that is compatible to any OS.

Notifications You must be signed in to change notification settings

sennett-lau/aws-layer-pypacker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Layer PyPacker

Description

aws-layer-pypacker is a tool to create AWS Lambda Layers from Python3.7 packages with aws linux docker image that is compatible to any OS.

Installation

x86 Based OS

Build the docker image with

docker build -t layer-packer:latest .

ARM Based OS

Build the docker image with

docker build -t layer-packer:latest . --platform linux/amd64

Implementation

To build a new python3.7 package layer:

  1. Create a required package text file named {layer_name}.txt
  2. Place the text file in requirements folder
  3. Run the docker image with:
docker run -v "$(pwd)/requirements:/requirements" -v "$(pwd)/layers:/layers" -e LAYER_NAME={layer_name} --rm layer-packer:latest
  1. The generated zip file will be placed in /layers with naming of {layer_name}.zip

About

AWS Layer PyPacker is a tool to create AWS Lambda Layers for Python3.7 packages with AWS Linux docker image that is compatible to any OS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published