AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2026-05-04 · Documentation low

File: code-library/latest/ug/iam_example_iot_GettingStarted_079_section.md

Summary

Added tagging for IAM roles, IoT audit tasks, mitigation actions, and SNS topics

Security assessment

Tagging additions are for resource organization. While IoT Device Defender is a security service, the changes only add metadata tags rather than documenting security features or addressing vulnerabilities.

Diff

diff --git a/code-library/latest/ug/iam_example_iot_GettingStarted_079_section.md b/code-library/latest/ug/iam_example_iot_GettingStarted_079_section.md
index 68e25ca64..c80215dab 100644
--- a//code-library/latest/ug/iam_example_iot_GettingStarted_079_section.md
+++ b//code-library/latest/ug/iam_example_iot_GettingStarted_079_section.md
@@ -156,0 +157,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+        aws iam tag-role --role-name "$ROLE_NAME" --tags Key=project,Value=doc-smith Key=tutorial,Value=aws-iot-device-defender-gs 2>&1 || true
+        
@@ -419,0 +422,3 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+    # Tag the audit task via IoT service
+    aws iot tag-resource --resource-arn "arn:aws:iot:$(aws configure get region):${ACCOUNT_ID}:audittask/${TASK_ID}" --tags Key=project,Value=doc-smith Key=tutorial,Value=aws-iot-device-defender-gs 2>&1 || true
+    
@@ -528,0 +534 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+            aws iot tag-resource --resource-arn "$MITIGATION_ACTION_ARN" --tags Key=project,Value=doc-smith Key=tutorial,Value=aws-iot-device-defender-gs 2>&1 || true
@@ -608 +614 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-        SNS_RESULT=$(aws sns create-topic --name "IoTDDNotifications" --output json 2>&1) || true
+        SNS_RESULT=$(aws sns create-topic --name "IoTDDNotifications" --tags Key=project,Value=doc-smith Key=tutorial,Value=aws-iot-device-defender-gs --output json 2>&1) || true