AWS Lambda - Pricing

What is AWS Lambda
AWS Lambda is a serverless compute service that lets you run code without provisioning or managing servers.
Create workload-aware cluster scaling logic, maintain event integrations, and manage runtimes with ease.
With Lambda, you can run code for virtually any type of application or backend service, all with zero administration, and only pay for what you use.
You are charged based on the number of requests for your functions and the duration it takes for your code to execute.
How Lambda counts requests
AWS lambda counts a request for each time it starts executing in response to an event notification trigger, such as from
Amazon Simple Notification Service (SNS)
Amazon EventBridge
invoke call, such as from Amazon API Gateway
Invoke via the AWS SDK
Test invokes from the AWS Console.
How Duration is calculated
Duration is calculated from the time your code begins executing until it returns or otherwise terminates, rounded up to the nearest 1 ms*.
The price depends on the amount of memory you allocate to your function. An increase in memory size triggers an equivalent increase in CPU available to your function
Duration cost depends on the amount of memory you allocate to your function. You can allocate any amount of memory to your function between 128 MB and 10,240 MB, in 1 MB increments. The table below contains a few examples of the price per 1 ms associated with different memory sizes, for usage falling within the first pricing tier
Subscribe to my newsletter
Read articles from Jaswanth kumar directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Jaswanth kumar
Jaswanth kumar
I have been working as a DevOps engineer @TESCRA for an Airlines Client. Mainly on Platform Engineering and Application logging and monitoring end