With Serverless v2, the hourly cost is somewhere like 12-20 cents per ACU per hour, depending on the AWS Region. You can check the price for each combination of AWS Region and Aurora database engine here: https://aws.amazon.com/rds/aurora/pricing/ Let's consider us-east-1, which (as of January 2024) is 12 cents per ACU per hour. The minimum for Serverless v2 is 0.5 ACUs, so 6 cents / hour. A typical month has 720 hours (30 days) or 744 (31 days). So if you set minimum capacity to 0.5 ACUs, leave the cluster idle, and nothing unexpected happens, best case is roughly $43-45 per month for instance charges. Plus whatever usage-based charges for storage, I/O, and there are some other optional features that could result in charges. (That's why you would go through the exercise with the pricing calculator.) What could interfere with the best case? Turning on memory-consuming or CPU-consuming features could prevent the idle cluster from scaling down to 0.5 ACUs. Something like Performance Insights (minimum 2 ACUs) or global database (minimum 8 ACUs). Cleanup operations like PostgreSQL vacuum could run and cause scaling up when you think the database should be idle. What actions could you take to make the best case even better? Do "stop cluster" overnight or other long periods when you don't need to use the database. If you need to add reader instances to the cluster to test out multi-AZ usage (read/write splitting etc.), delete the reader instances when they're not needed. Have cron jobs to run stop-db-cluster, modify-db-cluster, etc. to put things into a cheaper state during overnight periods if you forget to do it at the end of the day. Answer from rePost-User-6113899 on repost.aws
๐ŸŒ
Amazon Web Services
aws.amazon.com โ€บ compute โ€บ aws lambda โ€บ pricing
AWS Lambda Pricing
1 week ago - The average function execution duration is 120 ms. You have configured your function with 1536 MB of memory, on an x86 based processor. Your charges would be calculated as follows: ... The monthly compute price is $0.0000166667 per GB-s and the free tier provides 400,000 GB-s.
๐ŸŒ
CloudZero
cloudzero.com โ€บ home โ€บ blog โ€บ a simple guide to aws lambda pricing and cost management
A Simple Guide To AWS Lambda Pricing And Cost Management
December 12, 2024 - CloudZero Advisor provides customized insights about the best resources for your AWS Lambda projects. It considers factors such as pricing, AWS services, resource type, and AWS region. For example, you can use CloudZero Advisor to determine whether an X86 or Arm-based CPU is right for your serverless computing.
Discussions

Why is everyone saying Lambda is more expensive than EC2?
Besides what others commented about concurrent reqs in EC2 vs independent lambda execution costs, the trick considering all that is that Lambda is more efficient in terms of costs than EC2 UP UNTIL a certain amount of reqs/s, from that threshold onwards, the appropriate EC2 instance is cheaper. Engineers at BBVA came to this conclusion and wrote the whole analysis they made: https://www.bbva.com/en/innovation/economics-of-serverless/ More on reddit.com
๐ŸŒ r/aws
126
139
May 23, 2023
AWS Redshift Serverless - Need help with pricing : aws
๐ŸŒ r/aws
Serverless OpenSearch seems like a huge deal, but am I crazy about the pricing? : aws
I think serverless search has been the most obvious missing link in the fence in the world of infrastructure, so I'm very happy to see this come... More on old.reddit.com
๐ŸŒ r/aws
development workflow for software engineers when using mainly serverless and managed services : aws
๐ŸŒ r/aws
Top answer
1 of 2
2
With Serverless v2, the hourly cost is somewhere like 12-20 cents per ACU per hour, depending on the AWS Region. You can check the price for each combination of AWS Region and Aurora database engine here: https://aws.amazon.com/rds/aurora/pricing/ Let's consider us-east-1, which (as of January 2024) is 12 cents per ACU per hour. The minimum for Serverless v2 is 0.5 ACUs, so 6 cents / hour. A typical month has 720 hours (30 days) or 744 (31 days). So if you set minimum capacity to 0.5 ACUs, leave the cluster idle, and nothing unexpected happens, best case is roughly $43-45 per month for instance charges. Plus whatever usage-based charges for storage, I/O, and there are some other optional features that could result in charges. (That's why you would go through the exercise with the pricing calculator.) What could interfere with the best case? Turning on memory-consuming or CPU-consuming features could prevent the idle cluster from scaling down to 0.5 ACUs. Something like Performance Insights (minimum 2 ACUs) or global database (minimum 8 ACUs). Cleanup operations like PostgreSQL vacuum could run and cause scaling up when you think the database should be idle. What actions could you take to make the best case even better? Do "stop cluster" overnight or other long periods when you don't need to use the database. If you need to add reader instances to the cluster to test out multi-AZ usage (read/write splitting etc.), delete the reader instances when they're not needed. Have cron jobs to run stop-db-cluster, modify-db-cluster, etc. to put things into a cheaper state during overnight periods if you forget to do it at the end of the day.
2 of 2
0
Your best bet is to use AWS Calculator # https://calculator.aws/#/ in order to estimate the operating cost with the services that you plan to use. Secondly using the Graviton2 instances would save a lot compared with other instances. I have listed some common instance types that you may start using and then change later based on your project workload. t4g : For dev/test workload m6g : For general purpose workload r6g : For memory optimized workload Go with small storage initially and then you can scale it based on the need to optimize the cost.
๐ŸŒ
Reddit
reddit.com โ€บ r/aws โ€บ why is everyone saying lambda is more expensive than ec2?
r/aws on Reddit: Why is everyone saying Lambda is more expensive than EC2?
May 23, 2023 -

Please help me work out the math here, as I think I am doing this wrong.

A Lambda of 128mb costs $0.0000000021/ms, this works out $0.00756/hour.

A Lambda of 512mb costs $0.0000000083/ms, this works out $0.02988/hour.

Now if you look at EC2:

t4g.nano $0.0042/hour (0.5 GiB ram)

t4g.micro	$0.0084/hour (1GiB ram).

But... the Lambda will likely not run 100% of the time, and will stay warm for 10 minutes (not sure here?). And the RAM usage would be much better utilized if you got a function running, rather than an entire VPC.

Given all that, if the function can run with 128mb or less, it seems like a no-brainer to use Lambda.

However, if the function is bigger, it would only make sense to put it in an EC2 if it runs more than 30% of the time ($0.0084/hour cost of t4g.micro divided by 0.02988/h cost of 512mb lambda).

So why is everyone against Lambdas citing costs as the primary reason...?

๐ŸŒ
Amazon Web Services
aws.amazon.com โ€บ home โ€บ aws pricing
AWS Product and Service Pricing | Amazon Web Services
1 week ago - AWS offers you a pay-as-you-go approach for pricing for the vast majority of our cloud services. With AWS you pay only for the individual services you need, for as long as you use them, and without requiring long-term contracts or complex licensing. AWS pricing is similar to how you pay for utilities like water and electricity.
๐ŸŒ
Ready Set Cloud
readysetcloud.io โ€บ home โ€บ blog โ€บ when is serverless more expensive than containers?
When Is Serverless More Expensive Than Containers? | Ready, Set, Cloud!
February 1, 2023 - Using this little calculator we can see that once you reach an average of 66 requests per second, serverless becomes more expensive. AWS App Runner is a relatively new service that went generally available in May of 2021.
๐ŸŒ
AWS Marketplace
aws.amazon.com โ€บ marketplace โ€บ pp โ€บ prodview-ebibeg6eyrats
AWS Marketplace: Serverless Framework
This listing supports both pay-as-you-go and reserved options, offering greater flexibility to meet your needs. The standard price is $3.5 per reserved credit, and $4 per overage credit. If you need to reserve more than 50 credits, contact us at [email protected] for a discounted ...
Find elsewhere
๐ŸŒ
Serverless
serverless.com โ€บ pricing
Serverless Framework - Pricing
The Serverless Container Framework charges 1 Credit for each Container Instance, which is a container that is within a deployed state for more than 10 days in a given month. ... A Trace captures a single AWS Lambda invocation in Serverless Dashboard ...
๐ŸŒ
Cloudchipr
cloudchipr.com โ€บ blog โ€บ aws-lambda-pricing
AWS Lambda Pricing Breakdown: Ultimate Guide 2025
AWS Lambda is a serverless compute service that runs your code without the need for managing servers. Its billed based on the number of requests, the duration of code execution, and a few additional factorsโ€”allowing you to pay only for what you use.
๐ŸŒ
Amazon S3
s3.amazonaws.com โ€บ lambda-tools โ€บ pricing-calculator.html
AWS Lambda Pricing Calculator
The AWS Lambda pricing calculator helps determine the total cost executing Lambda functions per month.
๐ŸŒ
Amazon Web Services
aws.amazon.com โ€บ amazon bedrock โ€บ pricing
Amazon Bedrock Pricing โ€“ AWS
3 days ago - During that time, any requests ... to 85%. Prices and performance improvements vary by model and prompt length, but your caches are always isolated to your AWS account. Amazon Bedrock Prompt Management accelerates the creation, testing, and running of prompt through an intuitive UI and a set of APIs. You can easily test and version your prompts, compare different variants, and run them in a secure serverless ...
๐ŸŒ
Amazon Web Services
aws.amazon.com โ€บ analytics โ€บ amazon redshift โ€บ pricing
Amazon Redshift Pricing
1 week ago - With Amazon Redshift Serverless you can restore your data warehouse to specific points in the last 24 hours at a 30 min granularity free of charge. Data transfer costs and ML costs apply separately, the same as provisioned clusters. Snapshot replication and data sharing across AWS Regions are ...
๐ŸŒ
Learnaws
learnaws.io โ€บ aws-calculator โ€บ lambda
AWS Lambda Pricing Calculator | Serverless Pricing
AWS Lambda costs $0.37 for 1,000,000 requests executed for 100ms with 128MB of RAM. You only pay when your Lambda function runs, and billed by the millisecond.
๐ŸŒ
AWS
calculator.aws
AWS Pricing Calculator
AWS Pricing Calculator lets you explore AWS services, and create an estimate for the cost of your use cases on AWS.
๐ŸŒ
Lumigo
lumigo.io โ€บ guides โ€บ aws lambda 101 โ€บ aws lambda cost factors, cost comparisons and optimization [2024]
AWS Lambda Cost Factors, Cost Comparisons and Optimization [2024]
August 30, 2024 - In the early stages of your application, leveraging a serverless architecture to reduce costs can free up precious resources that allow you to add additional value, more quickly growing your user base and reaching product-market fit. However, as your Lambda application scales your operational costs will scale with it โ€“ potentially eclipsing the cost of maintaining a traditional web application entirely. This gives rise to a basic question โ€“ how much does an AWS Lambda application cost, in comparison to a traditional client-server model?
๐ŸŒ
Serverless
serverless.com โ€บ blog โ€บ understanding-and-controlling-aws-lambda-costs
Understanding and Controlling AWS Lambda Costs
This value also affects the CPU shares allocated to the function when it runs, but in a manner that is not currently disclosed by AWS. Lambda also allows limiting the maximum function execution time (seconds) for a function, to prevent runaway or hanging functions from driving up cost. Since Lambda functions run only when a request must be serviced, they only incur charges when used. The general pricing model adopted by serverless FaaS providers is based on two numbers per function invocation:
๐ŸŒ
AWS
aws.amazon.com โ€บ blogs โ€บ big-data โ€บ amazon-opensearch-serverless-cost-effective-search-capabilities-at-any-scale
Amazon OpenSearch Serverless cost-effective search capabilities, at any scale | AWS Big Data Blog
August 2, 2024 - The minimum deployment is four base units, two each for indexing and search. The minimum cost is approximately $350 per month (four half OCUs). All prices are quoted based on the US-East region and 30 days a month.
๐ŸŒ
Coruzant Technologies
coruzant.com โ€บ home โ€บ cloud โ€บ understanding aws serverless pricing
Understanding AWS Serverless Pricing - Coruzant Technologies
August 3, 2024 - The amount of compute resources consumed by your serverless functions also impacts your costs. AWS charges you based on the amount of memory allocated to your function and the time it takes for your function to execute.
๐ŸŒ
Infracost
infracost.io โ€บ home โ€บ glossary terms โ€บ tools & platforms โ€บ serverless pricing
Serverless Pricing - Infracost
December 6, 2024 - Serverless pricing refers to the cost model associated with serverless computing, where users are charged based on the actual resources consumed by their applications rather than pre-allocated infrastructure.