AWS Security ChangesHomeSearch

AWS ec2 documentation change

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

File: ec2/latest/devguide/example_ec2_GettingStarted_057_section.md

Summary

Added project/tutorial tags to MSK cluster, IAM policy, IAM role, security group, key pair, and EC2 instance resources

Security assessment

All modifications are purely additive tagging operations. Existing security configurations (like --encryption-info) remain unchanged. Tags don't alter resource permissions or data protection mechanisms.

Diff

diff --git a/ec2/latest/devguide/example_ec2_GettingStarted_057_section.md b/ec2/latest/devguide/example_ec2_GettingStarted_057_section.md
index 5d3624528..8b51c1829 100644
--- a//ec2/latest/devguide/example_ec2_GettingStarted_057_section.md
+++ b//ec2/latest/devguide/example_ec2_GettingStarted_057_section.md
@@ -371 +371,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-        --encryption-info "{\"EncryptionInTransit\": {\"InCluster\": true, \"ClientBroker\": \"TLS\"}}" 2>&1)
+        --encryption-info "{\"EncryptionInTransit\": {\"InCluster\": true, \"ClientBroker\": \"TLS\"}}" \
+        --tags project=doc-smith,tutorial=amazon-managed-streaming-for-apache-kafka-gs 2>&1)
@@ -484,0 +486,3 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+    aws iam tag-policy --policy-arn "$POLICY_ARN" \
+        --tags Key=project,Value=doc-smith Key=tutorial,Value=amazon-managed-streaming-for-apache-kafka-gs
+    
@@ -500,0 +505,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=amazon-managed-streaming-for-apache-kafka-gs
@@ -586 +592,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-        --vpc-id "$DEFAULT_VPC_ID" 2>&1)
+        --vpc-id "$DEFAULT_VPC_ID" \
+        --tag-specifications 'ResourceType=security-group,Tags=[{Key=project,Value=doc-smith},{Key=tutorial,Value=amazon-managed-streaming-for-apache-kafka-gs}]' 2>&1)
@@ -647 +654 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-    KEY_RESPONSE=$(aws ec2 create-key-pair --key-name "$KEY_NAME" --query 'KeyMaterial' --output text 2>&1)
+    KEY_RESPONSE=$(aws ec2 create-key-pair --key-name "$KEY_NAME" --tag-specifications 'ResourceType=key-pair,Tags=[{Key=project,Value=doc-smith},{Key=tutorial,Value=amazon-managed-streaming-for-apache-kafka-gs}]' --query 'KeyMaterial' --output text 2>&1)
@@ -687 +694 @@ 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=MSKTutorialClient-${RANDOM_SUFFIX}}]" 2>&1)
+        --tag-specifications "ResourceType=instance,Tags=[{Key=Name,Value=MSKTutorialClient-${RANDOM_SUFFIX}},{Key=project,Value=doc-smith},{Key=tutorial,Value=amazon-managed-streaming-for-apache-kafka-gs}]" 2>&1)