AWS code-library documentation change
Summary
Added resource tagging commands for IAM roles, S3 buckets, and SageMaker feature groups using 'project=doc-smith' and tutorial tags
Security assessment
The changes implement organizational tagging without modifying security configurations or addressing vulnerabilities. Tagging supports resource management but doesn't constitute a security feature or mitigate security risks.
Diff
diff --git a/code-library/latest/ug/bash_2_sagemaker_code_examples.md b/code-library/latest/ug/bash_2_sagemaker_code_examples.md index fb216d4f8..263321899 100644 --- a//code-library/latest/ug/bash_2_sagemaker_code_examples.md +++ b//code-library/latest/ug/bash_2_sagemaker_code_examples.md @@ -171,0 +172,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 + @@ -285,0 +290,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 + @@ -326 +334,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) @@ -361 +370,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)