AWS has made network calls available across all CloudFront edge locations, allowing CloudFront Functions to use external responses while processing requests. Previously, developers needed Lambda@Edge or origin-side logic when decisions required data from another service.
The new cf.fetch() method lets lightweight JavaScript functions query APIs before deciding how to handle traffic. AWS highlights checking AI agents’ permissions and budgets, or consulting fraud detection services. A second method, cf.beacon(), sends background analytics events, including for cached content. Both reuse distribution origin settings, including origin access control and VPC origins.
The change brings service-dependent decisions into CloudFront Functions rather than requiring another execution environment. Network calls cost $0.10 per million in addition to invocation charges; AWS includes them without extra charges in CloudFront flat-rate plans starting at Pro.


