AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added tagging to Direct Connect connections and VPN gateway resources

Security assessment

Identical to previous Direct Connect changes - adds organizational tags only. No security configurations or vulnerabilities addressed.

Diff

diff --git a/code-library/latest/ug/ec2_example_directconnect_GettingStarted_051_section.md b/code-library/latest/ug/ec2_example_directconnect_GettingStarted_051_section.md
index d4b4ebfbb..2ed9ef9cc 100644
--- a//code-library/latest/ug/ec2_example_directconnect_GettingStarted_051_section.md
+++ b//code-library/latest/ug/ec2_example_directconnect_GettingStarted_051_section.md
@@ -172 +172,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)
@@ -214 +215,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}]')