The purpose of this project is to demonstrate how to create a image resizer/optimizer with Lambda and S3.
Step 1: Install Docker and the Serverless Framework
Step 2: Go to the file serverless.yml
and replace ${YOUR-BUCKET-NAME-HERE} with your bucket name.
Step 3: Run the following commands:
yarn
docker run --rm -v $PWD:/var/task johnnyzabala/lambda:image-optimizer-build-nodejs8.10
sls deploy
Step 4: Enjoy 😎
For more details about this repo check this medium.