Softwr

Cloud · head to head

Amazon CloudFront vs AWS WAF

Amazon CloudFront logo

Amazon CloudFront

Cloud

AWS content delivery network with flat-rate and pay-as-you-go pricing

From
Free
Free plan
Yes
AWS WAF logo

AWS WAF

Cloud

Managed web application firewall for CloudFront, load balancers and APIs on AWS

From
$5/month
Free plan
No

The short version

  • Amazon CloudFront has a free plan, then $15/mo; AWS WAF starts at $5/mo.
  • Only Amazon CloudFront lists 750+ points of presence; only AWS WAF lists web ACLs and rules.
  • Where Amazon CloudFront falls short: free plan has no logging, bot management or advanced DDoS protection.
  • 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.

How do Amazon CloudFront and AWS WAF differ?

Amazon CloudFront and AWS WAF differ on starting price (Free against $5/month), pricing model and free tier (Yes against No). Only the attributes on which Amazon CloudFront and AWS WAF actually diverge.

Attributes where Amazon CloudFront and AWS WAF differ
AttributeAmazon CloudFrontAWS WAF
Starting priceFree$5/month
Pricing modelUsage-basedPer web ACL, per rule and per million requests
Free tierYesNo

Identical on both: platforms (Web).

Not yet recorded: category for AWS WAF.

Which features does each one have?

They share no listed features; 8 appear only for Amazon CloudFront and 6 only for AWS WAF. 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 Amazon CloudFront

  • 750+ points of presence
  • AWS Shield Standard DDoS protection
  • Serverless edge compute
  • Flat-rate plans with no overage
  • Pay-as-you-go pricing
  • Field-level encryption
  • gRPC and WebSockets support
  • Origin failover on Premium

Only in AWS WAF

  • Web ACLs and rules
  • Managed rule groups
  • Bot Control
  • Fraud Control
  • Rate-based rules
  • Logging

What is each one used for?

Amazon CloudFront is most often brought in for website acceleration; AWS WAF for rate limiting login and API endpoints that sit behind CloudFront. The jobs each tool is most often brought in to do.

Amazon CloudFront

  • Website accelerationnot AWS WAF
  • Video streaming deliverynot AWS WAF
  • API accelerationnot AWS WAF
  • Software and game update distributionnot AWS WAF
  • IoT firmware updatesnot AWS WAF

AWS WAF

  • Blocking SQL injection, cross-site scripting and known bad inputs in front of an Application Load Balancernot Amazon CloudFront
  • Rate limiting login and API endpoints that sit behind CloudFrontnot Amazon CloudFront
  • Adding bot detection to a retail site already hosted on AWSnot Amazon CloudFront
  • Applying one set of WAF rules across many accounts through AWS Firewall Managernot Amazon CloudFront

Where do Amazon CloudFront and AWS WAF fall short?

Amazon CloudFront's most cited limit: free plan has no logging, bot management or advanced DDoS protection. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon CloudFront

  • Free plan has no logging, bot management or advanced DDoS protection
  • Advanced DDoS protection and uptime SLA start at the Business plan
  • Pay-as-you-go cost varies month to month with traffic
  • Flat-rate plans cannot be combined with other offers or discounts

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

How much do Amazon CloudFront and AWS WAF cost?

Amazon CloudFront has a free plan, with paid plans from $15/mo; AWS WAF starts at $5/mo. Plan by plan below, from each vendor's own pricing page.

Amazon CloudFront

Free
  • FreeFree
  • Pro$15/mo
  • Business$200/mo
  • Premium$1,000/mo

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

Which should you pick?

Choose Amazon CloudFront if

  • You need 750+ points of presence.
  • You want to start without paying.
  • You also want aws shield standard ddos protection.

Choose AWS WAF if

  • You need web acls and rules.
  • You also want managed rule groups.

Questions people ask

Is Amazon CloudFront or AWS WAF better?
It depends on the job. Amazon CloudFront fits website acceleration; AWS WAF fits blocking SQL injection, cross-site scripting and known bad inputs in front of an Application Load Balancer. Amazon CloudFront starts at Free and AWS WAF at $5/month.
Which is cheaper, Amazon CloudFront or AWS WAF?
Amazon CloudFront has a free tier; the other does not. Paid plans start at Free for Amazon CloudFront and $5/month for AWS WAF.
Does Amazon CloudFront or AWS WAF run on more platforms?
Both run on Web, so platform support will not decide this one for you.
Can I use Amazon CloudFront for free?
Yes. Amazon CloudFront has a free tier, so you can try it without paying. AWS WAF starts at $5/month.
What is Amazon CloudFront best used for?
Amazon CloudFront is most often used for website acceleration, video streaming delivery, api acceleration, software and game update distribution. Of those, website acceleration and video streaming delivery are not what AWS WAF is typically brought in for.
What can Amazon CloudFront do that AWS WAF cannot?
Amazon CloudFront covers 750+ points of presence, AWS Shield Standard DDoS protection, Serverless edge compute, Flat-rate plans with no overage. AWS WAF covers Web ACLs and rules, Managed rule groups, Bot Control, Fraud Control.

Answered from the vendors’ own pages

Amazon CloudFront: How is CloudFront priced?

It offers flat-rate plans billed monthly per distribution with no overage charges. Alternatively, pay-as-you-go bills each service separately by usage, so cost varies with traffic.

Source
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.

Amazon CloudFront: Is there a free plan?

Yes. The Free plan is $0 a month and includes 1M requests, 100GB of data transfer and a basic WAF with 5 rules.

Source
AWS 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.

Amazon CloudFront: How many points of presence does it have?

The product page cites more than 750 globally dispersed points of presence. It also describes automated network mapping and intelligent routing.

Source
AWS 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.

Share

Related pages

Other head to heads