Lambda pricing

When you create a Lambda function, you need to configure the amount of RAM memory that will be available for use. It ranges from 128 MB to 1.5 GB. Allocating more memory means additional costs. It breaks the philosophy of avoiding provision, but at least it's the only thing you need to worry about. The good practice here is to estimate how much memory each function needs and make some tests before deploying to production. A bad provision may result in errors or higher costs.

Lambda has the following billing model:

Running time is counted in fractions of seconds, rounding up to the nearest multiple of 100 milliseconds.

Furthermore, there is a permanent free tier that gives you 1 million requests and 400,000 GB-seconds per month without charges.

In our use case scenario, we have assumed 5 million requests per month with an average of 200 milliseconds per execution. We can also assume that the allocated RAM memory is 512 MB per function: