AWS code-library documentation change
Summary
Added tagging commands for IAM roles, S3 buckets, and SageMaker feature groups with project/tutorial identifiers
Security assessment
Changes only add resource tagging for organizational purposes. Tagging doesn't address security vulnerabilities nor introduce security features. No evidence of security impact.
Diff
diff --git a/code-library/latest/ug/sts_example_iam_GettingStarted_028_section.md b/code-library/latest/ug/sts_example_iam_GettingStarted_028_section.md index 7fcfbb13f..b0411328e 100644 --- a//code-library/latest/ug/sts_example_iam_GettingStarted_028_section.md +++ b//code-library/latest/ug/sts_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)