| Did this page help you? Yes No Tell us about it... |
Creates a new virtual private gateway. A virtual private gateway is the VPC-side endpoint for your VPN connection. You can create a virtual private gateway before creating the VPC itself.
For more information about Amazon Virtual Private Cloud and virtual private gateway, go to Adding an IPsec Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.
The short version of this command is ec2addvgw.
ec2-create-vpn-gateway -t
type
| Name | Description | Required |
|---|---|---|
|
|
The type of VPN connection this virtual private gateway supports. Type: String Default: None Valid Values: Example: -t ipsec.1 |
Yes |
|
|
The Availability Zone option has been deprecated. The command will accept this option and ignore it. Type: String Default: None |
No |
| Option | Description |
|---|---|
|
|
Overrides the Region specified in the Default: The Example: |
|
|
Default: The Example: |
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
Specifies a connection timeout (in seconds). Example: --connection-timeout 30 |
|
|
Specifies a request timeout (in seconds). Example: --request-timeout 45 |
|
|
Displays verbose output by showing the SOAP request and response on the command line. This is particularly useful if you are building tools to talk directly to our SOAP API. |
|
|
Displays column headers in the output. |
|
|
Shows empty columns as |
|
|
Do not display tags for tagged resources. |
|
|
Prints internal debugging information. This is useful to assist us when troubleshooting problems. |
|
|
Displays Help. |
|
|
If Example: |
The command returns a table that contains the following information:
Output type identifier ("VPNGATEWAY")
Virtual private gateway ID, which uniquely identifies the virtual private gateway
Current state of the virtual private gateway (pending, available, deleting, deleted)
Type of VPN connection the virtual private gateway supports
Availability Zone the virtual private gateway is in
Information about VPCs attached to the virtual private gateway (there are none attached when you first create a virtual private gateway)
Amazon EC2 command line tools display errors on stderr.
This example creates a virtual private gateway.
PROMPT>ec2-create-vpn-gateway -t ipsec.1VPNGATEWAY vgw-8db04f81 pending ipsec.1