Install python libraries
mkdir python
pip install -t python yahoo_fin stockstats
zip -r9 layer.zip python
Create Lambda layer and upload zip file
aws lambda publish-layer-version \
--layer-name python-layer \
--license-info "MIT" \
--zip-file fileb://layer.zip \
--compatible-runtimes python3.7 python3.8