What does this Amazon Web Services Solution do?

The Serverless Image Handler solution combines highly available, trusted Amazon Web Services services and the open source image processing suite Sharp to enable fast and cost-effective image manipulation on the Amazon Web Services (Ningxia) region operated by NWCD and Amazon Web Services (Beijing) region operated by Sinnet. The solution automatically deploys and configures a serverless architecture that is optimized for dynamic image manipulation, and uses Amazon CloudFront for global content delivery and Amazon Simple Storage Service (Amazon S3) for reliable and durable cloud storage at a low cost.

Amazon Web Services Solution overview

This solution offers a simple way to automatically deploys and configures a serverless architecture that is optimized for dynamic image manipulation. The diagram below presents the Serverless Image Handler architecture you can deploy in minutes using the solution's implementation guide and accompanying Amazon CloudFormation template.

Serverless Image Handler

The Amazon CloudFormation template deploys the following resources: 

1. An Amazon CloudFront distribution that provides a caching layer to reduce the cost of image processing and the latency of subsequent image delivery. The CloudFront domain name provides cached access to the image handler API.

2. Amazon API Gateway to provide endpoint resources and initiate the Amazon Lambda function.

3. A Lambda function that retrieves the image from a customer’s existing Amazon S3 bucket and uses Sharp to return a modified version of the image to the API Gateway.

4. An Amazon S3 bucket for log storage, separate from your customer-created S3 bucket for storing images. If selected, the solution deploys an S3 bucket for storing the optional demo UI.

5. If you activate the image URL signature feature, the Lambda function retrieves the secret value from your existing Amazon Secrets Manager secret to validate the signature.

Serverless Image Handler

Version 6.0.0
Last updated: 11/2022
Author: Amazon Web Services 

Estimated deployment time: 15 min

Source code 

Features

Serverless Image Handler reference implementation

Automatically build a serverless architecture that is optimized for dynamic image manipulation on the Amazon Web Services Cloud.

Web interface

Deploy a simple web interface where you can interact directly with your image handler API endpoint using image files that already exist in your account.
Explore all Amazon Web Services Solutions

Browse our portfolio of Amazon Web Services -built solutions to common architectural problems.

Learn more 
Find a Partner

Find Amazon Web Services certified consulting and technology partners to help you get started.

Learn more 
Start building in the console

Sign-up and start exploring our services.

Get started