AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added resource tagging for IAM role, IoT audit task, mitigation action, and SNS topic

Security assessment

Tags added for resource organization only. No changes to IoT Device Defender security mechanisms or vulnerability fixes.

Diff

diff --git a/code-library/latest/ug/iot_example_iot_GettingStarted_079_section.md b/code-library/latest/ug/iot_example_iot_GettingStarted_079_section.md
index 0641cb5ca..5b05c6cee 100644
--- a//code-library/latest/ug/iot_example_iot_GettingStarted_079_section.md
+++ b//code-library/latest/ug/iot_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