AWS Security ChangesHomeSearch

AWS code-library documentation change

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

File: code-library/latest/ug/bash_2_direct-connect_code_examples.md

Summary

Added tagging to Direct Connect connection and VPN gateway resources with project/tutorial tags

Security assessment

Changes only introduce resource tagging for organizational tracking. No security configurations, vulnerabilities, or security features are modified or documented. Tagging doesn't alter security posture.

Diff

diff --git a/code-library/latest/ug/bash_2_direct-connect_code_examples.md b/code-library/latest/ug/bash_2_direct-connect_code_examples.md
index 439b5a81a..4144b0c44 100644
--- a//code-library/latest/ug/bash_2_direct-connect_code_examples.md
+++ b//code-library/latest/ug/bash_2_direct-connect_code_examples.md
@@ -186 +186,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-        --connection-name "$CONNECTION_NAME")
+        --connection-name "$CONNECTION_NAME" \
+        --tags key=project,value=doc-smith key=tutorial,value=aws-direct-connect-gs)
@@ -228 +229,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-    VGW_OUTPUT=$(aws ec2 create-vpn-gateway --type ipsec.1)
+    VGW_OUTPUT=$(aws ec2 create-vpn-gateway --type ipsec.1 \
+        --tag-specifications 'ResourceType=vpn-gateway,Tags=[{Key=project,Value=doc-smith},{Key=tutorial,Value=aws-direct-connect-gs}]')