AWS Security ChangesHomeSearch

AWS AmazonCloudFront: CloudFront connection logs: scope expanded to Anycast static IP tenants

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

File: AmazonCloudFront/latest/DeveloperGuide/connection-logs.md · Type: logging

Summary

Rewrites the connection logs page to clarify which connections CloudFront logs (mTLS-enabled distributions and HTTPS connections to distribution tenants on Anycast static IPs of their connection group), adds a new section on logging distribution tenants on Anycast static IPs with a sample record, corrects the eventTimestamp field to Unix epoch milliseconds, and adds new connection error codes (ClientCertOcspProcessingError, ClientCertOcspDenied, ConnectionFunctionDenied).

Security assessment

The change documents the observability/audit surface for TLS and mutual TLS connections, including certificate validation failure codes such as OCSP revocation-check failures ('ClientCertOcspDenied') and Connection Function denials. It clarifies that logs are emitted only for mTLS distributions and HTTPS connections to tenants on Anycast static IPs, which helps operators audit certificate-based authentication and detect failed or denied connections, but no specific vulnerability or incident is referenced.

Evidence

+CloudFront generates connection logs only for the following connections:

Diff

diff --git a/AmazonCloudFront/latest/DeveloperGuide/connection-logs.md b/AmazonCloudFront/latest/DeveloperGuide/connection-logs.md
index 4988ddc..795bd79 100644
--- a//AmazonCloudFront/latest/DeveloperGuide/connection-logs.md
+++ b//AmazonCloudFront/latest/DeveloperGuide/connection-logs.md
@@ -7 +7 @@
-What are connection logs?Enable connection logsConnection log fieldsConnection error codes
+What are connection logs?Connections that CloudFront logsConnection logs for distribution tenants on Anycast static IPsEnable connection logsConnection log fieldsConnection error codes
@@ -9 +9 @@ What are connection logs?Enable connection logsConnection log fieldsConnection e
-# Observability using connection logs
+# Connection logs
@@ -11 +11 @@ What are connection logs?Enable connection logsConnection log fieldsConnection e
-CloudFront connection logs provide detailed visibility into mutual TLS authentication events, allowing you to monitor certificate validation, track connection attempts, and troubleshoot authentication issues.
+CloudFront connection logs provide detailed visibility into TLS connections, including mutual TLS authentication events, allowing you to monitor certificate validation, track connection attempts, and troubleshoot authentication issues.
@@ -15 +15 @@ CloudFront connection logs provide detailed visibility into mutual TLS authentic
-Connection logs capture detailed information about TLS handshakes and certificate validation for mutual TLS-enabled distributions. Unlike standard access logs that record HTTP request information, connection logs focus specifically on the TLS connection establishment phase, including:
+Connection logs capture detailed information about TLS handshakes and certificate validation for mutual TLS-enabled distributions, and for distribution tenants on the Anycast static IP addresses of their connection group. Unlike standard access logs that record HTTP request information, connection logs focus specifically on the TLS connection establishment phase, including:
@@ -31,0 +32,44 @@ These logs provide comprehensive visibility into certificate-based authenticatio
+## Connections that CloudFront logs
+
+CloudFront generates connection logs only for the following connections:
+
+  * Connections to a distribution that has mutual TLS (viewer) enabled. For more information, see [Mutual TLS authentication with CloudFront (Viewer mTLS)](./mtls-authentication.html).
+
+  * HTTPS connections to a distribution tenant on the Anycast static IP addresses of its connection group. For more information, see Connection logs for distribution tenants on Anycast static IPs.
+
+
+
+
+Important
+
+CloudFront doesn't generate connection logs for any other connections. For example, you don't get connection logs for a standard distribution that doesn't use mutual TLS, for distribution tenants on the shared CloudFront IP addresses, or for HTTP connections. You can enable connection logs on a distribution that doesn't use mutual TLS, but the logs contain only the connections listed above.
+
+To enable connection logs, see Enable connection logs.
+
+## Connection logs for distribution tenants on Anycast static IPs
+
+When viewers connect to a distribution tenant through the Anycast static IP addresses of the distribution tenant's connection group, CloudFront can log each HTTPS connection, even when the multi-tenant distribution doesn't use mutual TLS. To get these logs, enable connection logs on the multi-tenant distribution, as described in Enable connection logs. CloudFront doesn't log HTTP connections, or connections to the shared CloudFront IP addresses.
+
+In these records, `distributionId` is the multi-tenant distribution, `distributionTenantId` is the distribution tenant, and `serverIp` is the Anycast static IP address that the viewer connected to. The client certificate fields contain `-`, because the viewer doesn't present a client certificate. The following is an example record:
+    
+    
+    {
+        "connectionId": "NSbVU0HLuZtjZEOxeIvLdCmqgCsjq0MRqda1ZxQQVNfCCLrxGZB4-A==",
+        "connectionStatus": "Success",
+        "clientIp": "192.0.2.110",
+        "clientPort": "4996",
+        "serverIp": "198.51.100.249",
+        "distributionTenantId": "dt_EXAMPLE22222",
+        "tlsProtocol": "TLSv1.2",
+        "tlsCipher": "ECDHE-RSA-AES128-GCM-SHA256",
+        "tlsHandshakeDuration": 70.0,
+        "tlsSni": "www.example.com",
+        "clientLeafCertSerialNumber": "-",
+        "clientLeafCertSubject": "-",
+        "clientLeafCertIssuer": "-",
+        "clientLeafCertValidity": "-",
+        "connectionLogCustomData": "-",
+        "eventTimestamp": 1794885872306,
+        "distributionId": "EDFDVBD6EXAMPLE"
+    }
+
@@ -34 +78 @@ These logs provide comprehensive visibility into certificate-based authenticatio
-Connection logs are available only for distributions with mutual TLS authentication enabled. You can send connection logs to multiple destinations including CloudWatch Logs, Amazon Data Firehose, and Amazon S3.
+CloudFront generates connection logs only for connections to distributions with mutual TLS enabled, and for HTTPS connections to distribution tenants on the Anycast static IP addresses of their connection group. For more information, see Connections that CloudFront logs. You can send connection logs to multiple destinations including CloudWatch Logs, Amazon Data Firehose, and Amazon S3.
@@ -40 +84 @@ Before enabling connection logs:
-  * Configure mutual TLS for your CloudFront distribution
+  * Enable mutual TLS for your CloudFront distribution, or serve your distribution tenants from a connection group that uses an Anycast static IP list. CloudFront doesn't generate connection logs for other connections.
@@ -55 +99 @@ Before enabling connection logs:
-  2. From the distribution list, select your mTLS-enabled distribution.
+  2. From the distribution list, select your mTLS-enabled distribution, or the multi-tenant distribution of your distribution tenants on Anycast static IPs.
@@ -122 +166 @@ Field | Description | Example
-`eventTimestamp` | ISO 8601 timestamp when the connection was established or failed | 1731620046814  
+`eventTimestamp` | Unix epoch time in milliseconds when the connection was established or failed | 1731620046814  
@@ -175,0 +220,2 @@ ClientCertMissing | Certificate is missing
+ClientCertOcspProcessingError | An error occurred while CloudFront checked the certificate's revocation status with OCSP  
+ClientCertOcspDenied | The OCSP check didn't confirm that the certificate is valid, for example because the certificate is revoked  
@@ -178,0 +225 @@ ConnectionFunctionError |  An uncaught exception was thrown during Connection Fu
+ConnectionFunctionDenied |  The Connection Function denied the connection  
@@ -188 +235 @@ To use the Amazon Web Services Documentation, Javascript must be enabled. Please
-Additional validation modes
+Use real-time access logs
@@ -190 +237 @@ Additional validation modes
-Origin mutual TLS with CloudFront
+Edge function logs