The AWS Lambda pricing scheme is a bit confusing to understand. To help easily calculate the cost of running Lambda functions, I've embedded my simple AWS Lambda pricing calculator below. (Click here to open in a new window).
I'm fairly certain that you're missing the "Request" portion.
According to AWS (https://aws.amazon.com/lambda/pricing/):
Requests 1. First 1 million requests per month are free 2. $0.20 per 1 million requests thereafter ($0.0000002 per request)
Duration 1. Duration is calculated from the time your code begins executing until it returns or otherwise terminates, rounded up to the nearest 100ms. The price depends on the amount of memory you allocate to your function. You are charged $0.00001667 for every GB-second used.
As you can see in the calculator, you aren't charged anything for the execution cost of 32000000 requests, but you are charged $0.44 for the request costs (1000000 free + $0.20*2.2).
This isn't correct ...
ReplyDeleteIf I put in 1000 ms, 3200000 request and allocated memory 128 I get $0.44/Month.
According to the AWS website this would be free ...
I'm fairly certain that you're missing the "Request" portion.
DeleteAccording to AWS (https://aws.amazon.com/lambda/pricing/):
Requests
1. First 1 million requests per month are free
2. $0.20 per 1 million requests thereafter ($0.0000002 per request)
Duration
1. Duration is calculated from the time your code begins executing until it returns or otherwise terminates, rounded up to the nearest 100ms. The price depends on the amount of memory you allocate to your function. You are charged $0.00001667 for every GB-second used.
As you can see in the calculator, you aren't charged anything for the execution cost of 32000000 requests, but you are charged $0.44 for the request costs (1000000 free + $0.20*2.2).