Skip to content

Instantly share code, notes, and snippets.

@hariby
Last active July 13, 2019 09:18
Show Gist options
  • Save hariby/867907a1bfd4739c59390cdc4228f505 to your computer and use it in GitHub Desktop.
Save hariby/867907a1bfd4739c59390cdc4228f505 to your computer and use it in GitHub Desktop.
Creating a SageMaker Python SDK Lambda Layer. Merge after AWSLambda-Python37-SciPy1x
#!/bin/bash
mkdir python
python3 -m pip install -r sagemaker-sdk-requirements.txt -t ./python/ --no-deps
zip sagemaker-sdk-layer.zip -r ./python/
rm -rf python
protobuf
protobuf3-to-dict
chardet
idna>=2.5,<2.8
requests>=2.20.0,<2.21
cached-property
dockerpty
PyYAML<4.3,>=3.10
docopt
websocket-client
docker-pycreds
docker[ssh]<4.0,>=3.7.0
jsonschema<3,>=2.5.1
texttable<0.10,>=0.9.0
docker-compose
sagemaker
urllib3<1.25
certifi
boto3>=1.9.64
botocore>=1.12.64,<1.13.0
s3transfer<0.3.0,>=0.2.0
enum34>=1.1.6
bcrypt>=3.1.3
paramiko>=2.4.2
pynacl>=1.0.1
cryptography>=2.5
cffi!=1.11.3,>=1.8
asn1crypto>=0.21.0
pycparser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment