Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cloudboratory/b705f94063c8fc354062f01db8560c12 to your computer and use it in GitHub Desktop.
Save cloudboratory/b705f94063c8fc354062f01db8560c12 to your computer and use it in GitHub Desktop.
Allows creation of an aws lambda layer using lambci/lambda to install Python's cryptography package
mkdir -p python/lib/python3.8/site-packages \
echo "cryptography" > requirements.txt \
sudo docker run -v "$PWD":/var/task "lambci/lambda:build-python3.8" /bin/sh -c "pip install -r requirements.txt -t python/lib/python3.8/site-packages/; exit"
@johndpope
Copy link

fyi - public.ecr.aws/sam/build-python3.10:latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment