Revisit Amazon Web Services re:Invent 2024’s biggest moments and watch keynotes and innovation talks on demand

 ✕

Homepage  »  Amazon Web Services Solutions  »  App Development & DevOps  »  Serverless Image Handler

Serverless Image Handler

Fast and cost-effective image manipulation

Homepage  »  Amazon Web Services Solutions  »  App Development & DevOps  »  Serverless Image Handler

Serverless Image Handler

Fast and cost-effective image manipulation

Overview

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.

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.

Technical details

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.

App Development & DevOps

Rapidly and reliably build and deliver products using DevOps practices.

Amazon Web Services Solutions

Explore the Amazon Web Services solutions library.

Use cases for this Amazon Web Services Solution
App Development & DevOps
About this deployment
Version
6.0.0

Released
11/2022

Author
Amazon Web Services

Est. deployment time
15 min
Source code 
Deployment options
Ready to get started?
Deploy this solution by launching it in your Amazon Web Services Console

Launch solution in the Amazon Web Services Console
探索所有亚马逊云科技解决方案
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