AWS Security ChangesHomeSearch

AWS ec2 documentation change

Service: ec2 · 2025-06-28 · Documentation low

File: ec2/latest/devguide/example_ec2_CreateVpnConnection_section.md

Summary

Added multiple PowerShell V5 examples for VPN connection creation and configuration

Security assessment

Documents standard VPN setup procedures without mentioning security considerations or vulnerabilities

Diff

diff --git a/ec2/latest/devguide/example_ec2_CreateVpnConnection_section.md b/ec2/latest/devguide/example_ec2_CreateVpnConnection_section.md
index 0549d1ff4..86f28a132 100644
--- a//ec2/latest/devguide/example_ec2_CreateVpnConnection_section.md
+++ b//ec2/latest/devguide/example_ec2_CreateVpnConnection_section.md
@@ -241,0 +242,40 @@ PowerShell
+
+
+
+
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example creates a VPN connection between the specified virtual private gateway and the specified customer gateway. The output includes the configuration information that your network administrator needs, in XML format.**
+    
+    
+    New-EC2VpnConnection -Type ipsec.1 -CustomerGatewayId cgw-1a2b3c4d -VpnGatewayId vgw-1a2b3c4d
+    
+
+**Output:**
+    
+    
+    CustomerGatewayConfiguration : [XML document]
+    CustomerGatewayId            : cgw-1a2b3c4d
+    Options                      :
+    Routes                       : {}
+    State                        : pending
+    Tags                         : {}
+    Type                         :
+    VgwTelemetry                 : {}
+    VpnConnectionId              : vpn-12345678
+    VpnGatewayId                 : vgw-1a2b3c4d
+
+**Example 2: This example creates the VPN connection and captures the configuration in a file with the specified name.**
+    
+    
+    (New-EC2VpnConnection -CustomerGatewayId cgw-1a2b3c4d -VpnGatewayId vgw-1a2b3c4d).CustomerGatewayConfiguration | Out-File C:\path\vpn-configuration.xml
+    
+
+**Example 3: This example creates a VPN connection, with static routing, between the specified virtual private gateway and the specified customer gateway.**
+    
+    
+    New-EC2VpnConnection -Type ipsec.1 -CustomerGatewayId cgw-1a2b3c4d -VpnGatewayId vgw-1a2b3c4d -Options_StaticRoutesOnly $true
+    
+
+  * For API details, see [CreateVpnConnection](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_.