AWS Security ChangesHomeSearch

AWS iot: Tighten IoT logging role policy to least-privilege log-stream scope

Service: iot · 2026-10-23 · Documentation medium

File: iot/latest/developerguide/configure-logging.md · Type: iam

Summary

Splits the logging role policy into separate statements, drops iot:SetV2LoggingOptions/GetLoggingOptions and related actions, and narrows the logs resource from log-group:AWSIotLogsV2:* to log-group:AWSIotLogsV2:log-stream:*.

Security assessment

The changed resource ARN scopes permissions to log streams only (rather than the whole log group) and removes broad IoT logging-config actions, a least-privilege hardening of the documented role policy.

Evidence

+                    "arn:aws:logs:us-east-1:123456789012:log-group:AWSIotLogsV2:log-stream:*"

Diff

diff --git a/iot/latest/developerguide/configure-logging.md b/iot/latest/developerguide/configure-logging.md
index e5d2136..28ab28b 100644
--- a//iot/latest/developerguide/configure-logging.md
+++ b//iot/latest/developerguide/configure-logging.md
@@ -90,2 +89,0 @@ Role policy:
-                    "logs:CreateLogStream",
-                    "logs:PutLogEvents",
@@ -93,8 +91,11 @@ Role policy:
-                    "logs:PutRetentionPolicy",
-                    "iot:GetLoggingOptions",
-                    "iot:SetLoggingOptions",
-                    "iot:SetV2LoggingOptions",
-                    "iot:GetV2LoggingOptions",
-                    "iot:SetV2LoggingLevel",
-                    "iot:ListV2LoggingLevels",
-                    "iot:DeleteV2LoggingLevel"
+                    "logs:PutRetentionPolicy"
+                ],
+                "Resource": [
+                    "arn:aws:logs:us-east-1:123456789012:log-group:AWSIotLogsV2"
+                ]
+            },
+            {
+                "Effect": "Allow",
+                "Action": [
+                    "logs:CreateLogStream",
+                    "logs:PutLogEvents"
@@ -103 +104 @@ Role policy:
-                    "arn:aws:logs:us-east-1:123456789012:log-group:AWSIotLogsV2:*"
+                    "arn:aws:logs:us-east-1:123456789012:log-group:AWSIotLogsV2:log-stream:*"