AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

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

Summary

Added PowerShell example for creating a customer gateway with IPsec VPN configuration

Security assessment

Documents VPN gateway creation which is a security feature, but no evidence of addressing a specific security flaw

Diff

diff --git a/code-library/latest/ug/ec2_example_ec2_CreateCustomerGateway_section.md b/code-library/latest/ug/ec2_example_ec2_CreateCustomerGateway_section.md
index b689292d7..811245ce6 100644
--- a//code-library/latest/ug/ec2_example_ec2_CreateCustomerGateway_section.md
+++ b//code-library/latest/ug/ec2_example_ec2_CreateCustomerGateway_section.md
@@ -71,0 +72,24 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example creates the specified customer gateway.**
+    
+    
+    New-EC2CustomerGateway -Type ipsec.1 -PublicIp 203.0.113.12 -BgpAsn 65534
+    
+
+**Output:**
+    
+    
+    BgpAsn            : 65534
+    CustomerGatewayId : cgw-1a2b3c4d
+    IpAddress         : 203.0.113.12
+    State             : available
+    Tags              : {}
+    Type              : ipsec.1
+
+  * For API details, see [CreateCustomerGateway](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+