AWS Security ChangesHomeSearch

AWS IAM documentation change

Service: IAM · 2026-05-04 · Documentation low

File: IAM/latest/UserGuide/sts_example_ecs_GettingStarted_018_section.md

Summary

Added resource tagging throughout ECS EC2 tutorial example for project and tutorial identifiers

Security assessment

Changes add operational tags for resource organization but don't address vulnerabilities, security controls, or security features. Tags are used for cost allocation/resource management without security implications.

Diff

diff --git a/IAM/latest/UserGuide/sts_example_ecs_GettingStarted_018_section.md b/IAM/latest/UserGuide/sts_example_ecs_GettingStarted_018_section.md
index 26f7d99d9..531781ea1 100644
--- a//IAM/latest/UserGuide/sts_example_ecs_GettingStarted_018_section.md
+++ b//IAM/latest/UserGuide/sts_example_ecs_GettingStarted_018_section.md
@@ -50,0 +51,4 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+    # Tags
+    PROJECT_TAG="doc-smith"
+    TUTORIAL_TAG="ecs-ec2"
+    
@@ -240 +244 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-        CLUSTER_ARN=$(aws ecs create-cluster --cluster-name "$CLUSTER_NAME" --query 'cluster.clusterArn' --output text)
+        CLUSTER_ARN=$(aws ecs create-cluster --cluster-name "$CLUSTER_NAME" --tags key=project,value=$PROJECT_TAG key=tutorial,value=$TUTORIAL_TAG --query 'cluster.clusterArn' --output text)
@@ -262,0 +267,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+        
+        aws ec2 create-tags --resources "$KEY_PAIR_NAME" --tags Key=project,Value=$PROJECT_TAG Key=tutorial,Value=$TUTORIAL_TAG 2>>"$LOG_FILE" || log "WARNING: Failed to tag key pair"
@@ -272,0 +279 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+            --tag-specifications "ResourceType=security-group,Tags=[{Key=project,Value=$PROJECT_TAG},{Key=tutorial,Value=$TUTORIAL_TAG}]" \
@@ -344,0 +352,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+            aws iam tag-role --role-name ecsInstanceRole --tags Key=project,Value=$PROJECT_TAG Key=tutorial,Value=$TUTORIAL_TAG
+            
@@ -396 +405 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-            --tag-specifications "ResourceType=instance,Tags=[{Key=Name,Value=ecs-tutorial-instance}]" \
+            --tag-specifications "ResourceType=instance,Tags=[{Key=Name,Value=ecs-tutorial-instance},{Key=project,Value=$PROJECT_TAG},{Key=tutorial,Value=$TUTORIAL_TAG}]" \
@@ -474 +483,11 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-        "networkMode": "bridge"
+        "networkMode": "bridge",
+        "tags": [
+            {
+                "key": "project",
+                "value": "PROJECT_TAG_PLACEHOLDER"
+            },
+            {
+                "key": "tutorial",
+                "value": "TUTORIAL_TAG_PLACEHOLDER"
+            }
+        ]
@@ -480,0 +500,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+        sed -i "s|PROJECT_TAG_PLACEHOLDER|$PROJECT_TAG|g" task-definition.json
+        sed -i "s|TUTORIAL_TAG_PLACEHOLDER|$TUTORIAL_TAG|g" task-definition.json
@@ -514,0 +536 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+            --tags key=project,value=$PROJECT_TAG key=tutorial,value=$TUTORIAL_TAG \