Cost - Serverless Image Handler

Cost

You are responsible for the cost of the AWS services used while running this solution. As of December 2021, 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.29 per month for 100,000 new images, $149.30 per month for 1,000,000 new images, and $744.91 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 storage, and AWS Secrets Manager.

Cost to process # of new images per month
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.40 $84.01 $420.04
Amazon S3

(store 1 MB images)

$2.29 $22.86 $114.30
AWS Secrets Manager* $0.90 $5.40 $25.40
Total monthly cost: $15.29 $149.30 $744.91

*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.