AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added resource tagging to security groups, DB subnet groups, Secrets Manager secrets, and RDS instances with 'project=doc-smith' and tutorial identifiers

Security assessment

Changes exclusively add organizational tags to resources. No security policies, access controls, or encryption settings are altered. Tagging security groups doesn't modify security rules.

Diff

diff --git a/code-library/latest/ug/ec2_example_rds_GettingStarted_036_section.md b/code-library/latest/ug/ec2_example_rds_GettingStarted_036_section.md
index e710159e6..2b90b5803 100644
--- a//code-library/latest/ug/ec2_example_rds_GettingStarted_036_section.md
+++ b//code-library/latest/ug/ec2_example_rds_GettingStarted_036_section.md
@@ -130 +130,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-        --vpc-id "$VPC_ID")
+        --vpc-id "$VPC_ID" \
+        --tag-specifications 'ResourceType=security-group,Tags=[{Key=project,Value=doc-smith},{Key=tutorial,Value=rds-gs}]')
@@ -162 +163,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-        --subnet-ids "$SUBNET1" "$SUBNET2")
+        --subnet-ids "$SUBNET1" "$SUBNET2" \
+        --tags Key=project,Value=doc-smith Key=tutorial,Value=rds-gs)
@@ -175 +177,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-        --secret-string '{"username":"adminuser","password":"'"$(openssl rand -base64 16)"'"}')
+        --secret-string '{"username":"adminuser","password":"'"$(openssl rand -base64 16)"'"}' \
+        --tags Key=project,Value=doc-smith Key=tutorial,Value=rds-gs)
@@ -206 +209,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-        --no-multi-az)
+        --no-multi-az \
+        --tags Key=project,Value=doc-smith Key=tutorial,Value=rds-gs)