serverless-thumbnails
serverless-thumbnails copied to clipboard
Serverless Service that takes an image url and returns a 100x100 thumbnail.
Serverless Thumbnails
Serverless Service that takes an image url and returns a 100x100 thumbnail.
Usage
-
serverless install --url https://github.com/eahefnawy/serverless-thumbnails
-
cd serverless-thumbnail
-
npm install
- set env var locally and for lambda:
- Local:
export THUMBNAILS_BUCKET=BUCKET_NAME
- Lambda: Add it to
.env
file
- Local:
-
serverless deploy
- add a url to an image bigger than 100x100 in
event.json
for testing -
serverless invoke -f thumbnail -p event.json
- Have fun!