Created
March 3, 2023 14:32
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fyi - public.ecr.aws/sam/build-python3.10:latest