Cost - Serverless Image Handler

Cost

You are responsible for the cost of the AWS services used while running this solution. As of this revision, the cost for running this solution with the default settings in the US East (N. Virginia) Region is approximately $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 Sample cost table for the cost breakdown).

We recommend creating a budget  through AWS Cost Explorer to help manage costs. Prices are subject to change. For full details, see the pricing webpage for each AWS service used in this solution.

Sample cost table

The following table provides a sample cost breakdown for deploying this solution with the default parameters in the US East (N. Virginia) Region for one month.

AWS service Dimensions

Cost [USD]

(100,000 new images)

Cost [USD]

(1,000,000 new images)

Cost [USD]

(5,000,000 new images)

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 $15.44 $150.83 $752.57

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

Demo UI

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

Image modification and analysis

This cost estimate doesn’t account for Amazon S3 PUT and GET requests, which can vary because modified images are cached in CloudFront, and because certain use cases require special-use capabilities such as smart cropping and content moderation with Amazon Rekognition. Using Amazon Rekognition features may incur additional charges. For more information, see Amazon Rekognition pricing.

There is no additional cost for using sharp, which is an open source library.