Softwr

Machine Learning · head to head

AWS WAF vs Amazon Redshift ML

AWS WAF logo

AWS WAF

Machine Learning

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

From
$5/month
Free plan
No
Amazon Redshift ML logo

Amazon Redshift ML

Machine Learning

SQL statements in Redshift that train models on SageMaker and return them as functions

From
Free
Free plan
Yes

The short version

  • Amazon Redshift ML has a free plan, then $0.25/mo; AWS WAF starts at $5/mo.
  • Only AWS WAF lists web ACLs and rules; only Amazon Redshift ML lists CREATE MODEL in SQL.
  • 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 AWS WAF and Amazon Redshift ML differ?

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

Attributes where AWS WAF and Amazon Redshift ML differ
AttributeAWS WAFAmazon Redshift ML
Starting price$5/monthFree
Pricing modelPer web ACL, per rule and per million requestsUsage-based
Free tierNoYes

Identical on both: 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 8 only for Amazon Redshift ML. 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 Amazon Redshift ML

  • CREATE MODEL in SQL
  • Automatic model selection
  • Local inference
  • Bring your own model
  • Algorithm selection
  • Cost ceiling controls
  • Existing warehouse security
  • Batch and interactive scoring

What is each one used for?

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

Amazon Redshift ML

  • Adding a churn or propensity score to an existing dashboard where the data is already in Redshift and nobody needs a bespoke modelnot AWS WAF
  • Letting an analytics team test whether a predictive column has any business value before asking for data science headcountnot AWS WAF
  • Scoring rows inside a SQL pipeline where moving data out to a separate service would add fragility for little benefitnot AWS WAF
  • Organisations committed to AWS whose main constraint is a data science backlog rather than modelling sophisticationnot AWS WAF

Where do AWS WAF and Amazon Redshift ML fall short?

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

Amazon Redshift ML

  • Training is billed by SageMaker separately from Redshift, so a feature that looks like a free SQL statement produces a second line item on a different part of the bill that the analyst who ran it usually cannot see
  • Autopilot searches many candidate models by default and the duration and cost of CREATE MODEL scale with the data size and the MAX_CELLS setting, so an unconstrained statement against a large table is an expensive accident rather than an experiment
  • Local inference runs on the Redshift cluster itself, so scoring millions of rows competes for the resources the warehouse exists to provide, and the remote inference alternative adds a per-batch network call plus an hourly SageMaker endpoint charge that persists whether or not anyone queries it
  • The supported problem types are limited to what the exposed algorithms cover, so anything involving text, images, sequences, a custom loss function or a bespoke evaluation metric is out of scope and has to be built conventionally
  • There is no retraining schedule, drift detection or model registry, so a model created by a statement stays exactly as trained until somebody remembers to recreate it, and nothing in the warehouse will report that its accuracy has decayed

How much do AWS WAF and Amazon Redshift ML cost?

AWS WAF starts at $5/mo; Amazon Redshift ML has a free plan, with paid plans from $0.25/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

Amazon Redshift ML

Free
  • Free TrialFree
    • 2-month trial
    • 750 DC2.Large hours
  • On-Demand$0.25/hour
    • Per-node pricing
    • SageMaker training

Which should you pick?

Choose AWS WAF if

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

Choose Amazon Redshift ML if

  • You need create model in sql.
  • You want to start without paying.
  • You also want automatic model selection.

Questions people ask

Is AWS WAF or Amazon Redshift ML 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; Amazon Redshift ML fits adding a churn or propensity score to an existing dashboard where the data is already in Redshift and nobody needs a bespoke model. AWS WAF starts at $5/month and Amazon Redshift ML at Free.
Which is cheaper, AWS WAF or Amazon Redshift ML?
Amazon Redshift ML has a free tier; the other does not. Paid plans start at $5/month for AWS WAF and Free for Amazon Redshift ML.
Does AWS WAF or Amazon Redshift ML run on more platforms?
Both run on Web, so platform support will not decide this one for you.
Can I use Amazon Redshift ML for free?
Yes. Amazon Redshift ML 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 Amazon Redshift ML is typically brought in for.
What can AWS WAF do that Amazon Redshift ML cannot?
AWS WAF covers Web ACLs and rules, Managed rule groups, Bot Control, Fraud Control. Amazon Redshift ML covers CREATE MODEL in SQL, Automatic model selection, Local inference, Bring your own model.

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.

Amazon Redshift ML: Does it require SageMaker?

Yes. Redshift ML is an interface; the training happens in SageMaker and needs an IAM role and an S3 bucket for the intermediate data.

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 Redshift ML: Is there an extra charge?

The SQL interface is part of Redshift, but the training runs as a SageMaker job charged at SageMaker rates, and a remote inference endpoint is billed for as long as it exists.

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.

Amazon Redshift ML: What kinds of model can it build?

Regression, binary and multiclass classification through the automatic path, plus direct use of XGBoost, linear learner, multilayer perceptron and K-means. Anything beyond structured tabular prediction is out of scope.

Amazon Redshift ML: Can I use a model I trained myself?

Yes, through the bring-your-own-model path, either compiled into the cluster for local inference or called as a remote SageMaker endpoint.

Amazon Redshift ML: Does it retrain automatically?

No. Retraining means running CREATE MODEL again, on a schedule you build yourself, and nothing in the product monitors whether it is needed.

Share

Related pages

Other head to heads