AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added tagging commands for S3 bucket and CloudFront distribution resources

Security assessment

The changes add resource tagging for organizational purposes only. No security controls, vulnerabilities, or security features are mentioned or modified.

Diff

diff --git a/code-library/latest/ug/bash_2_cloudfront_code_examples.md b/code-library/latest/ug/bash_2_cloudfront_code_examples.md
index b53f110a6..b3ddad118 100644
--- a//code-library/latest/ug/bash_2_cloudfront_code_examples.md
+++ b//code-library/latest/ug/bash_2_cloudfront_code_examples.md
@@ -229,0 +230,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+        aws s3api put-bucket-tagging --bucket "$BUCKET_NAME" --tagging 'TagSet=[{Key=project,Value=doc-smith},{Key=tutorial,Value=cloudfront-gettingstarted}]'
+        
@@ -385,0 +388,3 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+    # Tag the CloudFront distribution
+    aws cloudfront tag-resource --resource "arn:aws:cloudfront::$ACCOUNT_ID:distribution/$DISTRIBUTION_ID" --tags 'Items=[{Key=project,Value=doc-smith},{Key=tutorial,Value=cloudfront-gettingstarted}]'
+    
@@ -637,0 +643 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+        --tags Key=project,Value=doc-smith Key=tutorial,Value=aws-waf-gs \