AWS Security ChangesHomeSearch

AWS AmazonCloudFront: CloudFront Functions: network calls allowed with restrictions

Service: AmazonCloudFront · 2026-11-19 · Documentation medium

File: AmazonCloudFront/latest/DeveloperGuide/cloudfront-function-restrictions.md · Type: network

Summary

Adds a 'Network calls' restrictions section stating a function may make one network call per invocation only to an origin on the same distribution, clarifies the request-body restriction applies to the viewer request body, and removes 'network' from the list of restricted runtime features.

Security assessment

Documents a newly permitted egress capability along with the bounding restriction (single call, destination limited to an origin on the same distribution), which limits the blast radius of a compromised function and is therefore security-relevant documentation rather than a fix.

Evidence

+Your function can make one network call per invocation. The destination must be an origin that is configured on the same distribution as your function. For more information about network calls, see [Helper methods for network calls](./helper-functions-network-calls.html).

Diff

diff --git a/AmazonCloudFront/latest/DeveloperGuide/cloudfront-function-restrictions.md b/AmazonCloudFront/latest/DeveloperGuide/cloudfront-function-restrictions.md
index 403e38d..d53a859 100644
--- a//AmazonCloudFront/latest/DeveloperGuide/cloudfront-function-restrictions.md
+++ b//AmazonCloudFront/latest/DeveloperGuide/cloudfront-function-restrictions.md
@@ -7 +7 @@
-LogsRequest bodyUsing temporary credentials with the CloudFront KeyValueStore APIRuntimeCompute utilization
+LogsRequest bodyNetwork callsUsing temporary credentials with the CloudFront KeyValueStore APIRuntimeCompute utilization
@@ -18,0 +19,2 @@ The following restrictions apply only to CloudFront Functions.
+  * [Network calls](./cloudfront-function-restrictions.html#cloudfront-function-restrictions-network-calls)
+
@@ -36 +38,5 @@ Function logs in CloudFront Functions are truncated at 10 KB.
-CloudFront Functions can't access the body of the HTTP request.
+CloudFront Functions can't access the body of the viewer's HTTP request. This is separate from the request body that your function can construct and send on a network call. For more information about network calls, see [Helper methods for network calls](./helper-functions-network-calls.html).
+
+## Network calls
+
+Your function can make one network call per invocation. The destination must be an origin that is configured on the same distribution as your function. For more information about network calls, see [Helper methods for network calls](./helper-functions-network-calls.html).
@@ -79 +85 @@ If you're using a custom identity provider that does the federation and assumes
-The CloudFront Functions runtime environment doesn't support dynamic code evaluation, and it restricts access to the network, file system, environment variables, and timers. For more information, see [Restricted features](./functions-javascript-runtime-10.html#writing-functions-javascript-features-restricted-features).
+The CloudFront Functions runtime environment doesn't support dynamic code evaluation, and it restricts access to the file system, environment variables, and timers. For more information, see [Restricted features](./functions-javascript-runtime-10.html#writing-functions-javascript-features-restricted-features).