AWS Security ChangesHomeSearch

AWS ec2: Fix create-flow-logs example values and add output

Service: ec2 · 2026-10-31 · Documentation low

File: ec2/latest/devguide/example_ec2_CreateFlowLogs_section.md · Type: logging

Summary

Corrects the IAM role ARN account number, replaces the S3 bucket name with the demo bucket, and adds sample JSON output for the create-flow-logs CLI examples.

Security assessment

The change only corrects placeholder values (account number, bucket name) and adds example output for flow log creation; it documents logging configuration but does not fix a specific vulnerability.

Evidence

-        --deliver-logs-permission-arn arn:aws:iam::123456789101:role/publishFlowLogs

Diff

diff --git a/ec2/latest/devguide/example_ec2_CreateFlowLogs_section.md b/ec2/latest/devguide/example_ec2_CreateFlowLogs_section.md
index 38e4840..50d7179 100644
--- a//ec2/latest/devguide/example_ec2_CreateFlowLogs_section.md
+++ b//ec2/latest/devguide/example_ec2_CreateFlowLogs_section.md
@@ -27 +27 @@ The following `create-flow-logs` example creates a flow log that captures all re
-        --deliver-logs-permission-arn arn:aws:iam::123456789101:role/publishFlowLogs
+        --deliver-logs-permission-arn arn:aws:iam::123456789012:role/publishFlowLogs
@@ -53 +53 @@ The following `create-flow-logs` example creates a flow log that captures all tr
-        --log-destination arn:aws:s3:::flow-log-bucket/my-custom-flow-logs/ \
+        --log-destination arn:aws:s3:::amzn-s3-demo-bucket/my-custom-flow-logs/ \
@@ -56,0 +57,11 @@ The following `create-flow-logs` example creates a flow log that captures all tr
+Output:
+    
+    
+    {
+        "ClientToken": "so0eNA2uSHUNlHI0S2cJ305GuIX1CezaRdGtexample",
+        "FlowLogIds": [
+            "fl-1a2b3c4d5e6f7a8b9"
+        ],
+        "Unsuccessful": []
+    }
+
@@ -69 +80 @@ The following `create-flow-logs` example creates a flow log that captures all tr
-        --log-destination arn:aws:s3:::flow-log-bucket/my-custom-flow-logs/ \
+        --log-destination arn:aws:s3:::amzn-s3-demo-bucket/my-custom-flow-logs/ \
@@ -72,0 +84,11 @@ The following `create-flow-logs` example creates a flow log that captures all tr
+Output:
+    
+    
+    {
+        "ClientToken": "so0eNA2uSHUNlHI0S2cJ305GuIX1CezaRdGtexample",
+        "FlowLogIds": [
+            "fl-0a1b2c3d4e5f6a7b8"
+        ],
+        "Unsuccessful": []
+    }
+