AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added tagging to IAM roles, S3 buckets and SageMaker feature groups

Security assessment

Changes implement resource tagging for organizational purposes only. No security fixes or security documentation added.

Diff

diff --git a/code-library/latest/ug/s3_example_iam_GettingStarted_028_section.md b/code-library/latest/ug/s3_example_iam_GettingStarted_028_section.md
index db5172053..547abd1f9 100644
--- a//code-library/latest/ug/s3_example_iam_GettingStarted_028_section.md
+++ b//code-library/latest/ug/s3_example_iam_GettingStarted_028_section.md
@@ -157,0 +158,4 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+        # Tag the role
+        echo "Tagging IAM role..." >&2
+        aws iam tag-role --role-name "$role_name" --tags Key=project,Value=doc-smith Key=tutorial,Value=sagemaker-featurestore 2>&1
+        
@@ -271,0 +276,4 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+    # Tag the S3 bucket
+    echo "Tagging S3 bucket: $S3_BUCKET_NAME"
+    aws s3api put-bucket-tagging --bucket "$S3_BUCKET_NAME" --tagging 'TagSet=[{Key=project,Value=doc-smith},{Key=tutorial,Value=sagemaker-featurestore}]' 2>&1
+    
@@ -312 +320,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-        --role-arn "$ROLE_ARN" 2>&1)
+        --role-arn "$ROLE_ARN" \
+        --tags Key=project,Value=doc-smith Key=tutorial,Value=sagemaker-featurestore 2>&1)
@@ -347 +356,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-        --role-arn "$ROLE_ARN" 2>&1)
+        --role-arn "$ROLE_ARN" \
+        --tags Key=project,Value=doc-smith Key=tutorial,Value=sagemaker-featurestore 2>&1)