~/talk

Use AWS WAF to help avoid cost-prohibitive traffic in LLM apps

Talkat AWS re:Inforce 2024 · 2024-06-10..06-12· [web-platform, security]
links:none on file
slides:none on file

Public-facing LLM apps see roughly 47% bot traffic and face model denial-of-service that drives inference costs up. A 1,200-word RAG prompt (~1,400 input tokens) plus a 150-token output costs about $0.006 per LLM request on Bedrock/Claude, but adding AWS WAF + CloudFront and AWS WAF Bot Control can block ~43% of malicious requests and—based on the example—translate to roughly $277 saved per $1 WAF spend, while CloudFront absorbs massive spikes (150M RPS).

AI-written summary · about

  1. 0:00Threats to generative AI
  2. 2:19LLM fundamentals and RAG
  3. 6:55Costing LLM applications
  4. 8:14Securing with AWS WAF
  5. 14:28CloudFront protection
  6. 16:19Implementing WAF rules
  7. 16:48Observability and monitoring
  8. 17:41Summary and next steps
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.