Cloud · head to head
AWS KMS vs AWS Lambda

AWS KMS
Cloud
Managed encryption key service used by most AWS storage and database services
- From
- $1/month
- Free plan
- No

AWS Lambda
Cloud
Run code without thinking about servers
- From
- Free
- Free plan
- Yes
The short version
- AWS Lambda is a serverless compute service.
- AWS Lambda is free; AWS KMS starts at $1/mo.
- Only AWS KMS lists customer managed keys; only AWS Lambda lists event-driven execution.
- Where AWS KMS falls short: every decrypt call is a billed request, and workloads that call KMS for each record can accumulate millions of billable requests.
- Where AWS Lambda falls short: provisioned concurrency, used to avoid cold starts, is charged separately at $0.0000041667 per GB-second whether or not the function runs.
How do AWS KMS and AWS Lambda differ?
AWS KMS and AWS Lambda differ on starting price ($1/month against Free), pricing model and free tier (No against Yes). Only the attributes on which AWS KMS and AWS Lambda actually diverge.
| Attribute | AWS KMS | AWS Lambda |
|---|---|---|
| Starting price | $1/month | Free |
| Pricing model | Per key per month plus per 10,000 requests | Usage-based |
| Free tier | No | Yes |
| Platforms | Web | Web, API |
Not yet recorded: category for AWS KMS, founded for AWS KMS.
Which features does each one have?
They share no listed features; 6 appear only for AWS KMS and 20 only for AWS Lambda. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in AWS KMS
- Customer managed keys
- Service integration
- Automatic rotation
- Custom key stores
- CloudTrail logging
- Envelope encryption
Only in AWS Lambda
- Function-as-a-Service
- Event-driven execution
- Auto-scaling
- Pay-per-use
- Multiple languages
- Concurrency limits
- Dead Letter Queues
- Environment variables
What is each one used for?
AWS KMS is most often brought in for signing artefacts or JWTs with asymmetric keys that never leave the HSM; AWS Lambda for event-driven functions without managing servers. The jobs each tool is most often brought in to do.
AWS KMS
- Meeting a compliance requirement for customer-controlled encryption keys on S3 and RDSnot AWS Lambda
- Signing artefacts or JWTs with asymmetric keys that never leave the HSMnot AWS Lambda
- Encrypting application secrets and data keys with envelope encryptionnot AWS Lambda
- Separating key administrators from data users with key policies and audit logsnot AWS Lambda
AWS Lambda
- Event-driven functions without managing serversnot AWS KMS
- API backends behind API Gatewaynot AWS KMS
- Processing S3, DynamoDB, SQS and Kinesis eventsnot AWS KMS
- Scheduled jobs without a always-on instancenot AWS KMS
- Edge compute through Lambda@Edgenot AWS KMS
Where do AWS KMS and AWS Lambda fall short?
AWS KMS's most cited limit: per-account request quotas can throttle high-volume workloads, forcing data key caching or architectural workarounds. AWS Lambda's: ephemeral storage beyond the included 512 MB is metered. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
AWS KMS
- Cost grows with key count, so organisations that create one key per tenant or per object class pay $1 per month for each one, including the keys they forgot
- Every decrypt call is a billed request, and workloads that call KMS for each record can accumulate millions of billable requests
- Per-account request quotas can throttle high-volume workloads, forcing data key caching or architectural workarounds
- Keys are tied to AWS, so using the same keys with other clouds or on-premises systems needs external key stores or a separate tool such as HashiCorp Vault
- Key policies and grants interact with IAM in non-obvious ways, and a misconfigured policy can lock administrators out of a key
AWS Lambda
- Billed on two axes at once, $0.20 per million requests plus $0.0000166667 per GB-second of duration, so memory settings change the bill as much as traffic does
- Provisioned concurrency, used to avoid cold starts, is charged separately at $0.0000041667 per GB-second whether or not the function runs
- Ephemeral storage beyond the included 512 MB is metered
- Lambda@Edge costs $0.60 per million requests, three times the standard request rate
- VPC use and cross-region data transfer carry EC2 charges on top
How much do AWS KMS and AWS Lambda cost?
AWS KMS starts at $1/mo; AWS Lambda is free to use. Plan by plan below, from each vendor's own pricing page.
AWS KMS
$1/month- Customer managed key$1/mo
- $1 per key per month, prorated hourly
- Same price for symmetric, asymmetric, HMAC and multi-Region keys
- First and second rotation each add $1 per month
- RequestsOn request
- $0.03 per 10,000 requests
- 20,000 free requests per month
- $0.15 per 10,000 for most asymmetric requests, $12.00 per 10,000 for RSA GenerateDataKeyPair
AWS Lambda
Free- Free TierFree
- 1M free requests/month
- 400,000 GB-seconds/month
- Always free
Which should you pick?
Choose AWS Lambda if
- You need function-as-a-service.
- You want to start without paying.
- You work on Web, API.
- You also want event-driven execution.
Questions people ask
- Is AWS KMS or AWS Lambda better?
- It depends on the job. AWS KMS fits meeting a compliance requirement for customer-controlled encryption keys on S3 and RDS; AWS Lambda fits event-driven functions without managing servers. AWS KMS starts at $1/month and AWS Lambda at Free.
- Which is cheaper, AWS KMS or AWS Lambda?
- AWS Lambda has a free tier; the other does not. Paid plans start at $1/month for AWS KMS and Free for AWS Lambda.
- Does AWS KMS or AWS Lambda run on more platforms?
- AWS KMS runs on Web. AWS Lambda runs on Web, API.
- Can I use AWS Lambda for free?
- Yes. AWS Lambda has a free tier, so you can try it without paying. AWS KMS starts at $1/month.
- What is AWS KMS best used for?
- AWS KMS is most often used for meeting a compliance requirement for customer-controlled encryption keys on s3 and rds, signing artefacts or jwts with asymmetric keys that never leave the hsm, encrypting application secrets and data keys with envelope encryption, separating key administrators from data users with key policies and audit logs. Of those, meeting a compliance requirement for customer-controlled encryption keys on s3 and rds and signing artefacts or jwts with asymmetric keys that never leave the hsm are not what AWS Lambda is typically brought in for.
- What can AWS KMS do that AWS Lambda cannot?
- AWS KMS covers Customer managed keys, Service integration, Automatic rotation, Custom key stores. AWS Lambda covers Function-as-a-Service, Event-driven execution, Auto-scaling, Pay-per-use.
Answered from the vendors’ own pages
AWS KMS: How much does AWS KMS cost?
$1 per month per customer managed key, $0.03 per 10,000 requests, and a free tier of 20,000 requests per month, per the AWS pricing page.
AWS Lambda: Is there a free tier for AWS Lambda?
Yes. AWS Lambda offers a free tier including 1 million requests per month, 400,000 GB-seconds per month, and 100 GB monthly response streaming.
SourceAWS KMS: Are AWS managed keys free?
Keys that AWS services create on your behalf (AWS managed keys) have no monthly fee; usage charges for requests may still apply as shown on the pricing page.
AWS Lambda: How is AWS Lambda charged?
Lambda charges $0.20 per million requests. Duration charges are $0.0000166667 per GB-second for x86 (up to 6 billion GB-seconds/month in US East Ohio with tiered pricing). Ephemeral storage over the included 512 MB costs $0.0000000309 per GB-second. Provisioned Concurrency costs $0.0000041667 per GB-second with a 5-minute minimum.
SourceAWS KMS: What is the difference between KMS and CloudHSM?
KMS is a multi-tenant key service integrated with AWS services. CloudHSM gives you dedicated single-tenant HSMs, and in the AWS example a two-HSM cluster costs $1.60 per HSM per hour.
AWS Lambda: What are Lambda Durable Functions pricing?
Lambda Durable Functions include operations at $8.00 per million (start execution, steps, waits). Data written costs $0.25 per GB. Data retention is $0.15 per GB-month with configurable 1-90 day retention (default 14 days).
SourceRelated pages
Other head to heads
- AWS KMS vs HashiCorp Vault
- AWS KMS vs Baffle
- AWS KMS vs Enpass
- AWS KMS vs Mullvad VPN
- AWS KMS vs IVPN
- AWS KMS vs Passbolt
- AWS KMS vs LastPass
- AWS KMS vs Private Internet Access
- AWS KMS vs TunnelBear
- AWS KMS vs Eagle Eye Networks
- AWS KMS vs Rhombus Systems
- AWS KMS vs Genetec Security Center
- AWS KMS vs Proofpoint Core Email Protection
- AWS KMS vs Rapid7 Incident Command
- AWS KMS vs Scalefusion UEM
- AWS KMS vs ServiceNow Security Operations
- AWS KMS vs Silent Eight
- AWS KMS vs Sophos Firewall
- AWS KMS vs Google Cloud Run
- AWS KMS vs Deno Deploy
- AWS KMS vs Zoho Catalyst
- AWS KMS vs Azure Functions
- AWS KMS vs Google App Engine
- AWS KMS vs Serverless Framework
- AWS KMS vs Cerebrium
- AWS KMS vs Koyeb
- AWS KMS vs Beam Cloud
- AWS KMS vs KeyCDN
- AWS KMS vs Lambda
- AWS KMS vs Porter
- AWS KMS vs Crusoe Cloud
- AWS KMS vs Infracost
- AWS KMS vs Kustomize
- AWS KMS vs Lium
- AWS KMS vs Nebius
- AWS KMS vs Nitric
- AWS Lambda vs HashiCorp Vault
- AWS Lambda vs Baffle
- AWS Lambda vs Enpass
- AWS Lambda vs Mullvad VPN
- AWS Lambda vs IVPN
- AWS Lambda vs Passbolt
- AWS Lambda vs LastPass
- AWS Lambda vs Private Internet Access
- AWS Lambda vs TunnelBear
- AWS Lambda vs Eagle Eye Networks
- AWS Lambda vs Rhombus Systems
- AWS Lambda vs Genetec Security Center
- AWS Lambda vs Proofpoint Core Email Protection
- AWS Lambda vs Rapid7 Incident Command
- AWS Lambda vs Scalefusion UEM
- AWS Lambda vs ServiceNow Security Operations
- AWS Lambda vs Silent Eight
- AWS Lambda vs Sophos Firewall
- AWS Lambda vs Google Cloud Run
- AWS Lambda vs Deno Deploy
- AWS Lambda vs Zoho Catalyst
- AWS Lambda vs Azure Functions
- AWS Lambda vs Google App Engine
- AWS Lambda vs Serverless Framework
- AWS Lambda vs Cerebrium
- AWS Lambda vs Koyeb
- AWS Lambda vs Beam Cloud
- AWS Lambda vs KeyCDN
- AWS Lambda vs Lambda
- AWS Lambda vs Porter
- AWS Lambda vs Crusoe Cloud
- AWS Lambda vs Infracost
- AWS Lambda vs Kustomize
- AWS Lambda vs Lium
- AWS Lambda vs Nebius
- AWS Lambda vs Nitric
