Creating a Virtual Private Gateway

You can create a virtual private gateway to attach to a Virtual Private Cloud (VPC). You can then set up a VPN connection between the VPC and a customer gateway. For more information, see Tutorial: Setting Up a VPN Connection.

You can create the virtual private gateway before or after creating the VPC.

Creating a Virtual Private Gateway Using Cockpit v1

  1. Click VPC > Virtual Private Gateways.

  2. Click Create .
    The CREATE A VIRTUAL PRIVATE GATEWAY dialog box appears.

  3. Click Create to validate.
    The virtual private gateway is created and appears on the Virtual Private Gateways page.

Creating a Virtual Gateway Using OSC CLI

See the CreateVirtualGateway command sample in the documentation of the OUTSCALE API.

Creating a Virtual Private Gateway Using AWS CLI

To create a virtual private gateway, use the create-vpn-gateway command following this syntax:

Request sample
$ aws ec2 create-vpn-gateway \
    --profile YOUR_PROFILE \
    --type ipsec.1 \
    --endpoint https://fcu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • type: The type of VPN connection the virtual private gateway supports (always ipsec.1).

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The create-vpn-gateway command returns the following elements:

  • State: The state of the virtual private gateway (pending | available | deleting | deleted). For more information, see About Virtual Private Gateways > Lifecycle.

  • Tags: One or more tags associated with the virtual private gateway. This element contains the following information:

    • Key: The key of the tag.

    • Value: The value of the tag.

  • Type: The type of VPN connection the virtual private gateway supports (always ipsec.1).

  • VpnGatewayId: The ID of the virtual private gateway.

  • VpcAttachments: The VPC to which the virtual private gateway is attached, if any. This element contains the following information:

Result sample
 {
    "VpnGateway": {
        "State": "available",
        "Tags": [],
        "Type": "ipsec.1",
        "VpnGatewayId": "vgw-ce550be4",
        "VpcAttachments": []
    }
}

The virtual private gateway is created.

Related Pages

Corresponding API Methods

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.