In the last post in this series, we saw how we can execute a piece of a code when something is uploaded to the S3 bucket. We saw all the configuration we might have to go through. We also saw how we can test our trigger manually and automatically when object is uploaded. At last, we also came accross a trouble and shooted it. In this section, we will continue our venture.
In this post, we are going to see how we can use existing AWS infrastructure to create thumbnail for uploaded images. In this venture, we are going to use S3 trigger to execure Lambda function to do whatever we want. But in this case, we'll create thumbnail so that we can save on some bandwidth when only a smaller version of image is required on the frontend. So let's get started.