https://github.com/umihico/squeezed-python-lambda-layer
squeeze your favorite python modules into one AWS Lambda Layer
https://github.com/umihico/squeezed-python-lambda-layer
Last synced: 7 months ago
JSON representation
squeeze your favorite python modules into one AWS Lambda Layer
- Host: GitHub
- URL: https://github.com/umihico/squeezed-python-lambda-layer
- Owner: umihico
- Created: 2020-06-13T02:14:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-13T02:15:12.000Z (over 5 years ago)
- Last Synced: 2025-01-15T23:15:51.604Z (9 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
You can only specify up to 5 layers in your lambda. Let's squeeze modules into one layer and hack this rule.
+ clone this repository
+ edit `requirements.txt` as you want
+ replace arugments of `--layer-name`, `--region` and `--runtime` in `publish_layer.sh`.
+ `sh publish_layer.sh`That's it!
If you want to include some binary files like `headless-chromium` and `chromedriver`, yes you can do it. Please check out [publish_selenium_layer.sh](https://github.com/umihico/fav-py-modules/blob/selenium/publish_selenium_layer.sh) and [scraping.py](https://github.com/umihico/fav-py-modules/blob/selenium/scraping.py).
This selenium binaries works with python 3.7. not with 3.8 :(