AWS Lambda pricing is based on number of requests and duration of execution, with generous free tier allowances.
Pay per Requests
- First 1 million requests per month are free.
- Then $0.20 per 1M requests (~$0.0000002 per request).
Pay per Duration
- First 400,000 GB-seconds of compute time per month are free.
- Example: 400,000 seconds at 1 GB RAM, or 3,200,000 seconds at 128 MB RAM.
- After that: $1.00 per 600,000 GB-seconds.
- Billed in 1 ms increments.
The combination of pay-per-use pricing and the free tier makes Lambda a cost-effective compute option for many workloads.