AWS ec2 documentation change
Summary
Added PowerShell V5 examples for Get-EC2VpnConnection cmdlet including state filtering and connection details
Security assessment
The examples show VPN connection monitoring but do not address security vulnerabilities or document security configuration aspects of VPN connections.
Diff
diff --git a/ec2/latest/devguide/example_ec2_DescribeVpnConnections_section.md b/ec2/latest/devguide/example_ec2_DescribeVpnConnections_section.md index c18f6cc3c..3b18c8990 100644 --- a//ec2/latest/devguide/example_ec2_DescribeVpnConnections_section.md +++ b//ec2/latest/devguide/example_ec2_DescribeVpnConnections_section.md @@ -134,0 +135,44 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example describes the specified VPN connection.** + + + Get-EC2VpnConnection -VpnConnectionId vpn-12345678 + + +**Output:** + + + CustomerGatewayConfiguration : [XML document] + CustomerGatewayId : cgw-1a2b3c4d + Options : Amazon.EC2.Model.VpnConnectionOptions + Routes : {Amazon.EC2.Model.VpnStaticRoute} + State : available + Tags : {} + Type : ipsec.1 + VgwTelemetry : {Amazon.EC2.Model.VgwTelemetry, Amazon.EC2.Model.VgwTelemetry} + VpnConnectionId : vpn-12345678 + VpnGatewayId : vgw-1a2b3c4d + +**Example 2: This example describes any VPN connection whose state is either pending or available.** + + + $filter = New-Object Amazon.EC2.Model.Filter + $filter.Name = "state" + $filter.Values = @( "pending", "available" ) + + Get-EC2VpnConnection -Filter $filter + + +**Example 3: This example describes all your VPN connections.** + + + Get-EC2VpnConnection + + + * For API details, see [DescribeVpnConnections](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +