Serverless architecture for cost-effective image processing - Serverless Image Handler

Serverless architecture for cost-effective image processing

Publication date: June 2017 (last update: December 2021)

The Serverless Image Handler solution helps you embed images on your websites and mobile applications to drive user engagement. It uses Sharp to provide high-speed image processing without sacrificing image quality. To minimize your costs of image optimization, manipulation, and processing, this solution automates version control and provides flexible storage and compute options for file reprocessing.

This solution automatically deploys and configures a serverless architecture optimized for dynamic image manipulation. Images can be rendered and returned spontaneously. For example, an image can be resized based on different screen sizes by adding code on your website that leverages this solution to resize the image before being sent to the screen using the image. It uses Amazon CloudFront for global content delivery and Amazon Simple Storage Service (Amazon S3) for reliable and durable cloud storage.

This implementation guide is intended for IT infrastructure architects, administrators, DevOps professionals who have practical experience architecting web applications in the AWS Cloud, and IT developers who want to use this solution in their applications for image manipulation at the edge. It discusses architectural considerations and provides configuration steps for deploying this solution. This guide includes links to an AWS CloudFormation template to launch and configure all services required to deploy this solution on AWS, using AWS best practices for security and availability.


You cannot update earlier versions of the Serverless Image Handler solution to version 6.0.0 due to changes with how resources are deployed to your environment. To use version 6.0.0, you must uninstall the previous version of the solution first, and then launch a new stack using version 6.0.0 of the AWS CloudFormation template.