Skip to content

a powershell script to build AWS lambda layer with docker image: lambci/lambda:build-python3.7

Notifications You must be signed in to change notification settings

p768lwy3/aws-lambda-layer-powershell-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Building AWS Lambda Layer by Powershell and Docker on Windows

Since some of the python packages need to be compiled with Cython (or other compiler), we cannot compile those packages in windows directly, therefore, the powershell script in this repo build the packages with Docker (using the image lambci/lambda:build-python3.7 used by AWS Lambda).

How to use?

  1. create a folder call python in the directory of the repo
  2. modify requirements.txt
  3. run .\build_layer.ps1 in poweshell
  4. zip python folder to <any name you like>.zip
  5. upload to AWS Lambda Layer

Reference

  1. AWS Lambda Layers

Happy coding~

About

a powershell script to build AWS lambda layer with docker image: lambci/lambda:build-python3.7

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published