CloudFront Functions could not call anything. If your logic needed data from another service, you used Lambda@Edge or pushed the decision back to the origin. Since 18 November it can make network calls, with cf.fetch() and cf.beacon().
I'm going by the What's New post and a hands-on write-up from Classmethod, so treat the limits below as reported, not tested by me.
What you get
-
cf.fetch()calls one of your API endpoints and lets the function act on the response. -
cf.beacon()sends a request without waiting for a reply, so you can emit analytics events even for cached content without slowing the viewer. - Both use the origin settings already on your distribution, including origin access control, VPC origins and connection reuse.
- The destination is an origin ID and path from the same distribution, per the Classmethod walkthrough.
AWS's own examples are worth noting: check an AI agent's permissions and usage budget before a request reaches your API or MCP server, or send request signals to a fraud service to block or challenge traffic.
What it costs
$0.10 per million network calls, on top of normal CloudFront Functions invocation charges. They are included at no extra cost in the Pro plan and above of the CloudFront flat-rate plans. Available at all edge locations.
My arithmetic, not AWS's: if every request makes one call, 100 million requests a month adds $10 in network call charges. That is small. The invocation charges and whatever your auth API costs to run are the bigger numbers.
Limits to read before designing around it
The Classmethod article reports these from testing:
- One network call per function execution.
- The response can be awaited for up to 1 second.
- Request and response bodies are each limited to 10 KB.
I could not confirm these in AWS's own text from the pages I read, so check the Developer Guide section on helper methods for network calls before you rely on them. One call and one second is plenty for a token check. It is not enough for chained lookups.
Where I'd use it, and where not
I'd use it for a lightweight allow/deny check where the answer is small and fast: API key or agent-budget validation in front of an API. I'd avoid it for anything that needs more than one hop or a large payload, which is still Lambda@Edge or origin territory.
The part I'd want to understand first is failure behaviour. If the auth API is slow or down, what does the viewer see? I have not seen that stated, so I'd test it before this sits in front of production traffic.
Sources
- Amazon CloudFront Functions can now make network calls (AWS What's New)
- I Tried Making Network Calls with Amazon CloudFront Functions (Classmethod)
Drafted with AI assistance. I review and edit every post.

