Cloud · head to head
AWS WAF vs Lambda

AWS WAF
Cloud
Managed web application firewall for CloudFront, load balancers and APIs on AWS
- From
- $5/month
- Free plan
- No

Lambda
Cloud
GPU supercomputers for AI training and inference at enterprise scale
- From
- $2.59/hour
- Free plan
- No
The short version
- Lambda is an AI-only GPU cloud provider.
- AWS WAF starts at $5/mo, Lambda at $2.59/mo.
- Only AWS WAF lists web ACLs and rules; only Lambda lists 1-Click Clusters.
- Where AWS WAF falls short: it only attaches to a fixed list of AWS resources, so applications hosted outside AWS or behind another CDN cannot use it.
- Where Lambda falls short: no free tier or trial, requiring immediate commitment for testing.
How do AWS WAF and Lambda differ?
AWS WAF and Lambda differ on starting price ($5/month against $2.59/hour) and pricing model. Only the attributes on which AWS WAF and Lambda actually diverge.
Identical on both: free tier (No), platforms (Web).
Not yet recorded: category for AWS WAF, founded for AWS WAF.
Which features does each one have?
They share no listed features; 6 appear only for AWS WAF and 7 only for 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 WAF
- Web ACLs and rules
- Managed rule groups
- Bot Control
- Fraud Control
- Rate-based rules
- Logging
Only in Lambda
- Superclusters
- 1-Click Clusters
- On-demand instances
- Liquid cooling
- InfiniBand networking
- Managed orchestration
- Co-engineering support
What is each one used for?
AWS WAF is most often brought in for rate limiting login and API endpoints that sit behind CloudFront; Lambda for training foundation models at scale with dedicated GPU infrastructure. The jobs each tool is most often brought in to do.
AWS WAF
- Blocking SQL injection, cross-site scripting and known bad inputs in front of an Application Load Balancernot Lambda
- Rate limiting login and API endpoints that sit behind CloudFrontnot Lambda
- Adding bot detection to a retail site already hosted on AWSnot Lambda
- Applying one set of WAF rules across many accounts through AWS Firewall Managernot Lambda
Lambda
- Training foundation models at scale with dedicated GPU infrastructurenot AWS WAF
- Large-scale inference serving on enterprise-grade hardwarenot AWS WAF
- Multi-GPU distributed training with InfiniBand networkingnot AWS WAF
- Single-tenant secure compute for regulated industriesnot AWS WAF
- AI lab infrastructure for frontier model developmentnot AWS WAF
Where do AWS WAF and Lambda fall short?
Lambda's most cited limit: no free tier or trial, requiring immediate commitment for testing. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
AWS WAF
- It only attaches to a fixed list of AWS resources, so applications hosted outside AWS or behind another CDN cannot use it
- Charges come from several meters at once (web ACL, rules, rule groups, requests, logging, and per-feature fees), so predicting a bill needs a worksheet rather than a single price
- Account Takeover Prevention and Fraud Control start at $1,000 per million requests, so protecting a busy login endpoint can cost more than the web ACL itself
- Managed rules ship in count-first workflows and generate false positives on unusual payloads, so someone has to review logs and tune exclusions
- Request body inspection is capped by default, and inspecting beyond the limit or using more than the default capacity units carries extra per-request charges
Lambda
- No free tier or trial, requiring immediate commitment for testing
- Single-tenant Superclusters require custom pricing discussions
- Pricing complexity across multiple GPU types and cluster sizes
- Less suitable for experimentation or small teams with tight budgets
How much do AWS WAF and Lambda cost?
AWS WAF starts at $5/mo; Lambda starts at $2.59/mo. Plan by plan below, from each vendor's own pricing page.
AWS WAF
$5/month- Pay-as-you-go$5/mo
- $5.00 per web ACL per month
- $1.00 per rule and $1.00 per rule group per month
- $0.60 per million requests
- Bot Control$10/mo
- $10.00 per web ACL per month subscription
- Common: $1.00 per million requests, first 10 million free
- Targeted: $10.00 per million requests, first million free
- Account Takeover and Fraud Control$10/mo
- $10.00 per web ACL per month per rule group
- $1,000 per million requests for the first 2 million, falling to $50 per million at the highest tier
Lambda
$2.59/hour- 1-Click Clusters B200On request
- 16 GPUs: $9.86/GPU/hour
- 256+ GPUs: $8.87/GPU/hour
- 1-year+ reserved discounts available
- 1-Click Clusters H100On request
- 16 GPUs: $6.16/GPU/hour
- 256+ GPUs: $5.54/GPU/hour
- On-Demand Instances B200On request
- SXM6: $6.69/GPU/hour
- On-Demand Instances H100On request
- SXM: $3.99/GPU/hour
Which should you pick?
Questions people ask
- Is AWS WAF or Lambda better?
- It depends on the job. AWS WAF fits blocking SQL injection, cross-site scripting and known bad inputs in front of an Application Load Balancer; Lambda fits training foundation models at scale with dedicated GPU infrastructure. AWS WAF starts at $5/month and Lambda at $2.59/hour.
- Which is cheaper, AWS WAF or Lambda?
- AWS WAF starts at $5/month and Lambda at $2.59/hour.
- Does AWS WAF or Lambda run on more platforms?
- Both run on Web, so platform support will not decide this one for you.
- What is AWS WAF best used for?
- AWS WAF is most often used for blocking sql injection, cross-site scripting and known bad inputs in front of an application load balancer, rate limiting login and api endpoints that sit behind cloudfront, adding bot detection to a retail site already hosted on aws, applying one set of waf rules across many accounts through aws firewall manager. Of those, blocking sql injection, cross-site scripting and known bad inputs in front of an application load balancer and rate limiting login and api endpoints that sit behind cloudfront are not what Lambda is typically brought in for.
- What can AWS WAF do that Lambda cannot?
- AWS WAF covers Web ACLs and rules, Managed rule groups, Bot Control, Fraud Control. Lambda covers Superclusters, 1-Click Clusters, On-demand instances, Liquid cooling.
Answered from the vendors’ own pages
AWS WAF: How much does AWS WAF cost per month?
On pay-as-you-go pricing it is $5.00 per web ACL and $1.00 per rule per month, plus $0.60 per million requests, per the AWS pricing page. Bot Control, fraud rules, CAPTCHA and logging are billed on top.
Lambda: What makes Lambda's infrastructure different?
Lambda offers single-tenant Superclusters with exclusive GPU access, liquid cooling, and NVIDIA Quantum-2 InfiniBand networking. The company is 100% focused on AI infrastructure with co-engineering support from teams who built infrastructure for major AI labs.
SourceAWS WAF: Does AWS WAF work outside AWS?
No. It protects supported AWS resources such as CloudFront, Application Load Balancer and API Gateway. Origins elsewhere can be covered if they sit behind CloudFront.
Lambda: How does pricing work for large clusters?
1-Click Clusters pricing ranges from $5.54-$9.86 per GPU/hour depending on GPU type and cluster size, with volume discounts for 256+ GPUs. Reserved capacity is available at custom pricing for 1-year+ commitments.
SourceAWS WAF: Is AWS WAF included with Shield Advanced?
Shield Advanced includes WAF usage for protected resources, up to 50 billion requests per month and 1,500 capacity units per web ACL, per the Shield pricing page.
Lambda: Which GPU types are available?
Lambda offers NVIDIA B200, H100, A100, and Tesla V100 GPUs. Individual instances range from V100 at $0.79/hour to B200 SXM6 at $6.69/hour. Newer models like Vera Rubin are available in Superclusters.
SourceRelated pages
Other head to heads
- AWS WAF vs Imperva
- AWS WAF vs FortiWeb
- AWS WAF vs Sucuri
- AWS WAF vs Wordfence
- AWS WAF vs Sophos Firewall
- AWS WAF vs Clerk
- AWS WAF vs Transcend
- AWS WAF vs Hanwha Vision
- AWS WAF vs Baffle
- AWS WAF vs Cisco Secure Firewall
- AWS WAF vs Palo Alto Networks Next-Generation Firewall
- AWS WAF vs Dashlane
- AWS WAF vs Mullvad VPN
- AWS WAF vs JumpCloud
- AWS WAF vs Genetec Security Center
- AWS WAF vs Microsoft Sentinel
- AWS WAF vs IVPN
- AWS WAF vs FortiMail
- AWS WAF vs Runcrate
- AWS WAF vs Vast.ai
- AWS WAF vs Cerebrium
- AWS WAF vs Beam Cloud
- AWS WAF vs Nebius
- AWS WAF vs Fireworks AI
- AWS WAF vs OVHcloud
- AWS WAF vs IBM Cloud
- AWS WAF vs Anyscale
- AWS WAF vs Oracle Cloud
- AWS WAF vs Koyeb
- AWS WAF vs Chef
- AWS WAF vs Amazon VPC
- AWS WAF vs AWS Batch
- AWS WAF vs AWS Direct Connect
- AWS WAF vs AWS Elastic Beanstalk
- AWS WAF vs AWS Fargate
- AWS WAF vs AWS Outposts
- Lambda vs Imperva
- Lambda vs FortiWeb
- Lambda vs Sucuri
- Lambda vs Wordfence
- Lambda vs Sophos Firewall
- Lambda vs Clerk
- Lambda vs Transcend
- Lambda vs Hanwha Vision
- Lambda vs Baffle
- Lambda vs Cisco Secure Firewall
- Lambda vs Palo Alto Networks Next-Generation Firewall
- Lambda vs Dashlane
- Lambda vs Mullvad VPN
- Lambda vs JumpCloud
- Lambda vs Genetec Security Center
- Lambda vs Microsoft Sentinel
- Lambda vs IVPN
- Lambda vs FortiMail
- Lambda vs Runcrate
- Lambda vs Vast.ai
- Lambda vs Cerebrium
- Lambda vs Beam Cloud
- Lambda vs Nebius
- Lambda vs Fireworks AI
- Lambda vs OVHcloud
- Lambda vs IBM Cloud
- Lambda vs Anyscale
- Lambda vs Oracle Cloud
- Lambda vs Koyeb
- Lambda vs Chef
- Lambda vs Amazon VPC
- Lambda vs AWS Batch
- Lambda vs AWS Direct Connect
- Lambda vs AWS Elastic Beanstalk
- Lambda vs AWS Fargate
- Lambda vs AWS Outposts
