lambda-packs
Precompiled packages for AWS lambda
How to start
- https://aws.amazon.com/lambda/ and create/sign in into account
- Lambda > Functions - Create lambda function
- Black function
- Configure triggers - Next
- Configure function
- Runtime - Python 2.7
- Lambda function handler and role
- Handler - service.lambda_handler
- Role - Create new role from template(s)
- Role name - test
- Policy templates - Simple Microservice Permissions
- Advanced settings
- Memory (MB) 128
- Timeout 1 min 0 sec
- Code entry type - Upload a .ZIP file - choose Pack.zip from rep
- Test -> Save and test
How to modify
- Modify service.py file from sources folder
- Choose all files in sources folder when compressing, don't put it in one folder
- Upload zip file on function page
Current packs
Selenium_PhantomJS
Useful for web testing and scraping.
Demo
Current demo opens random page from wiki (https://en.wikipedia.org/wiki/Special:Random) and prints title.