Thumbnail generator using Serverless Framework.
-
Clone this repository
-
Edit the
serverless.yml
file and replace profile and region name with actual one. -
The project requires deploying additional dependencies to be packaged along with the code to Lambda. For this, install Serverless Python Requirements plugin.
$ npm install --save serverless-python-requirements
-
The plugin will now bundle the python dependencies specified in
requirements.txt
orPipfile
when you run serverless deploy. -
Deploy the function
$ serverless deploy -v
- Invoke the Lambda function
$ serverless invoke --function s3_thumbnail_generator --log
Refer official Serverless Framework documentation here.