Cost - Serverless Image Handler


You are responsible for the cost of the AWS services used while running this solution. As of November 2022, the estimated cost for running the Serverless Image Handler solution with an AWS Lambda processing time of two seconds per image, where each image is approximately 1 MB in size, and default settings in the US East (N. Virginia) Region is $15.44 per month for 100,000 new images, $150.83 per month for 1,000,000 new images, and $752.57 per month for 5,000,000 new images (refer to the following table for the cost breakdown). This includes estimated charges for Amazon API Gateway, AWS Lambda, Amazon CloudFront, Amazon S3, and AWS Secrets Manager.

Cost to process # of new images per month [USD]
AWS service 100,000 1,000,000 5,000,000
Amazon API Gateway $0.35 $3.50 $17.50
AWS Lambda

(2 seconds processing time per image)

$3.35 $33.53 $167.67
Amazon CloudFront

(process 1 MB images per request)

$8.50 $85.00 $425.00
Amazon S3

(store 1 MB images)

$2.34 $23.40 $117.00
AWS Secrets Manager* $0.90 $5.40 $25.40
Total monthly cost: $15.44 $150.83 $752.57

*The cost for AWS Secrets Manager is incurred only when the image URL signature feature is activated.

**The cost for Amazon Rekognition is incurred only when the image smart cropping or content moderation is used. For information about Amazon Rekognition image processing cost, refer to Amazon Rekognition Image pricing.

If you choose to deploy the demo user interface, the solution automatically deploys an additional Amazon CloudFront distribution and Amazon S3 bucket for storing the static website assets in your account. You are responsible for the incurred variable charges from these services.

This cost estimate does not account for Amazon S3 PUT and GET requests, that can vary because modified images are cached in CloudFront, and because certain use cases require special-use capabilities such as smart cropping with Amazon Rekognition. Using Amazon Rekognition features may incur additional charges. There is no additional cost for using sharp, which is an open source library. Prices are subject to change. For full details, refer to the pricing webpage for each AWS service you will be using in this solution.