Amazon CloudFront Functions now supports network calls

Amazon CloudFront Functions Enhancements
Amazon CloudFront Functions now support network calls, allowing functions to act on responses during a request. This feature enables real-time data usage for personalizing, authenticating, or routing requests at the edge, close to viewers.
With the new cf.fetch() method, functions can call API endpoints and use the response to decide how to handle each request. Similarly, the cf.beacon() method allows sending analytics events in the background without slowing down viewers, even for cached content.
Network calls are available at all CloudFront edge locations and are included at no additional cost in the Pro plan and above in CloudFront flat-rate plans. They cost $0.10 per million calls, on top of CloudFront Functions invocation charges.
What to do
- Update your CloudFront Functions to utilize the new
cf.fetch()andcf.beacon()methods for real-time data processing. - Review the Amazon CloudFront Developer Guide for more details on helper methods for network calls.
- Check the Amazon CloudFront pricing page for updated costs.
Source: AWS release notes
If you need further guidance on AWS, our experts are available at AWS@westloop.io. You may also reach us by submitting the Contact Us form.



