Skip to content

Instantly share code, notes, and snippets.

@jewelsjacobs
Last active May 20, 2020 23:35
Show Gist options
  • Save jewelsjacobs/8764cccb393b8574a125c6b2e118ec41 to your computer and use it in GitHub Desktop.
Save jewelsjacobs/8764cccb393b8574a125c6b2e118ec41 to your computer and use it in GitHub Desktop.
Create python layer
LIB_DIR=aioboto3-layer/python
mkdir -p $LIB_DIR
pip install aioboto3 -t $LIB_DIR
cd aioboto3-layer
zip -r ~/Desktop/aioboto3-layer.zip .
# Upload or
aws lambda publish-layer-version --layer-name aioboto3-layer --zip-file fileb:///$HOME/Desktop/aioboto3-layer.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment