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