Softwr

Developer Tools · head to head

AWS WAF vs Distroless

AWS WAF logo

AWS WAF

Developer Tools

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

From
$5/month
Free plan
No
Distroless logo

Distroless

Developer Tools

Minimal container base images from Google that hold only an app and its runtime

From
Free
Free plan
Yes

The short version

  • Distroless is free; AWS WAF starts at $5/mo.
  • Only AWS WAF lists web ACLs and rules; only Distroless lists nonroot and debug tag variants.
  • 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 Distroless falls short: no shell or package manager, so installing packages or debugging inside the image is harder.

How do AWS WAF and Distroless differ?

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

Attributes where AWS WAF and Distroless differ
AttributeAWS WAFDistroless
Starting price$5/monthFree
Pricing modelPer web ACL, per rule and per million requestsOpen-source
Free tierNoYes
PlatformsWebLinux

Not yet recorded: category for AWS WAF.

Which features does each one have?

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

  • No package manager or shell in runtime images
  • Debian 13 based images
  • Static, base and cc images for compiled apps
  • Java, Node.js and Python 3 runtime images
  • Nonroot and debug tag variants
  • Cosign keyless image signing
  • Multi architecture builds including amd64, arm64 and s390x
  • Bazel based build tooling

What is each one used for?

AWS WAF is most often brought in for rate limiting login and API endpoints that sit behind CloudFront; Distroless for production base images for Go or Rust binaries. 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 Distroless
  • Rate limiting login and API endpoints that sit behind CloudFrontnot Distroless
  • Adding bot detection to a retail site already hosted on AWSnot Distroless
  • Applying one set of WAF rules across many accounts through AWS Firewall Managernot Distroless

Distroless

  • Production base images for Go or Rust binariesnot AWS WAF
  • Reducing vulnerability scanner findingsnot AWS WAF
  • Smaller Java and Node.js container imagesnot AWS WAF
  • Running containers as a non root usernot AWS WAF
  • Verifying image provenance with cosignnot AWS WAF

Where do AWS WAF and Distroless fall short?

Distroless's most cited limit: no shell or package manager, so installing packages or debugging inside the image is harder. 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

Distroless

  • No shell or package manager, so installing packages or debugging inside the image is harder
  • Language images cover only Java, Node.js and Python 3, with other runtimes built by the user
  • Architecture support differs by image, and python3 lists only amd64, arm64 and riscv64
  • Tags without a distro suffix may change which Debian release they resolve to

How much do AWS WAF and Distroless cost?

AWS WAF starts at $5/mo; Distroless is free to use. 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

Distroless

Free

No published plan breakdown. See the Distroless review.

Which should you pick?

Choose AWS WAF if

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

Choose Distroless if

  • You need no package manager or shell in runtime images.
  • You want to start without paying.
  • You work on Linux.
  • You also want debian 13 based images.

Questions people ask

Is AWS WAF or Distroless 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; Distroless fits production base images for Go or Rust binaries. AWS WAF starts at $5/month and Distroless at Free.
Which is cheaper, AWS WAF or Distroless?
Distroless has a free tier; the other does not. Paid plans start at $5/month for AWS WAF and Free for Distroless.
Does AWS WAF or Distroless run on more platforms?
AWS WAF runs on Web. Distroless runs on Linux.
Can I use Distroless for free?
Yes. Distroless has a free tier, so you can try it without paying. AWS WAF starts at $5/month.
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 Distroless is typically brought in for.
What can AWS WAF do that Distroless cannot?
AWS WAF covers Web ACLs and rules, Managed rule groups, Bot Control, Fraud Control. Distroless covers No package manager or shell in runtime images, Debian 13 based images, Static, base and cc images for compiled apps, Java, Node.js and Python 3 runtime images.

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.

Distroless: What is in a distroless image?

According to the project, an image holds only your application and its runtime dependencies. Package managers, shells and other standard Linux distribution programs are omitted.

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.

Distroless: How can I debug a distroless container?

The project publishes debug and debug-nonroot tags that add a BusyBox shell. The standard tags have no shell.

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.

Distroless: Are distroless images signed?

Yes. Images are signed with cosign keyless signing, and the project provides a cosign verify command that checks the certificate issuer and identity.

Source
Distroless: Which licence does Distroless use?

GitHub's repository data lists the Apache 2.0 licence. The images are free to use.

Source
Share

Related pages

Other head to heads