AWS Lambda Pricing

With AWS Lambda, you pay only for what you use. You are charged based on the number of requests for your functions and the time your code executes.

Requests

You are charged for the total number of requests across all your functions. Lambda counts a request each time it starts executing in response to an event notification or invoke call, including test invokes from the console.

¥ 1.36 per 1 million requests (¥ 0.00000136 per request)

Duration

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.000113477 for every GB-second used.

The table below shows the approximate price per 100ms associated for different memory sizes.

Memory (MB) Price per 100ms (¥) (Beijing) Price per 100ms (¥) (Ningxia)
128 0.0000014185 0.0000014185
192 0.0000021277 0.0000021277
256 0.0000028369 0.0000028369
320 0.0000035462 0.0000035462
384 0.0000042554 0.0000042554
448 0.0000049646 0.0000049646
512 0.0000056739 0.0000056739
576 0.0000063831 0.0000063831
640 0.0000070923 0.0000070923
704 0.0000078015 0.0000078015
768 0.0000085108 0.0000085108
832 0.0000092200 0.0000092200
896 0.0000099292 0.0000099292
960 0.0000106385 0.0000106385
1024 0.0000113477 0.0000113477
1088 0.0000120569 0.0000120569
1152 0.0000127662 0.0000127662
1216 0.0000134754 0.0000134754
1280 0.0000141846 0.0000141846
1344 0.0000148939 0.0000148939
1408 0.0000156031 0.0000156031
1472 0.0000163123 0.0000163123
1536 0.0000170216 0.0000170216

Additional Charges

You may incur additional charges if your Lambda function utilizes other AWS services or transfers data. For example, if your Lambda function reads and writes data to or from Amazon S3, you will be billed for the read/write requests and the data stored in Amazon S3.

For details on AWS service pricing, see the pricing section of the relevant AWS service. Links to pricing for some of the commonly used services are listed below.

Data transfer (If your Lambda function initiates external data transfers, they will be charged at the EC2 data transfer rate)

Amazon S3 pricing (includes pricing for storage, requests, and data transfer)

Amazon DynamoDB (includes pricing for data storage, throughput capacity, and data transfer)