AWS code-library documentation change
Summary
Added PowerShell V5 examples for VPN connection creation with IPsec and static routing
Security assessment
Documents secure VPN configuration using IPsec protocol, which is a security feature, but doesn't fix existing vulnerabilities.
Diff
diff --git a/code-library/latest/ug/ec2_example_ec2_CreateVpnConnection_section.md b/code-library/latest/ug/ec2_example_ec2_CreateVpnConnection_section.md index 90bcb4dc8..5887f9dd7 100644 --- a//code-library/latest/ug/ec2_example_ec2_CreateVpnConnection_section.md +++ b//code-library/latest/ug/ec2_example_ec2_CreateVpnConnection_section.md @@ -247,0 +248,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)_. + + + +