Creating an Internet Gateway

You can create an Internet gateway that you can then attach to a Virtual Private Cloud (VPC) to connect instances in one or more subnets directly to the Internet.

To do so, you also need to add a route to the route table of these subnets directing Internet traffic to the Internet gateway and update your security groups. For more information, see Tutorial: Setting Up a Direct Connection Between Instances in a VPC and the Internet.

Creating an Internet Gateway Using Cockpit v1

  1. Click VPC > Internet Gateways.

  2. Click Create .
    The CREATE INTERNET GATEWAY dialog box appears.

  3. Click Create to validate.
    The Internet gateway is created and appears on the Internet Gateways page.

Creating an Internet Service Using Cockpit v2-beta

  1. In the Internet Services dashboard, click IconAddFull Create Internet Service.
    The CREATE INTERNET SERVICE dialog box appears.

  2. In the Name field, type a name for the Internet service.

    This action adds a Name tag of 255 characters maximum. You can use any character, including accented letters.

  3. Click Create Internet Service.
    The Internet Service is created.

Creating an Internet Service Using OSC CLI

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

Creating an Internet Gateway Using AWS CLI

To create an Internet gateway, use the create-internet-gateway command following this syntax:

Request sample
$ aws ec2 create-internet-gateway \
    --profile YOUR_PROFILE \

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.

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

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

  • InternetGateway: Information about the newly created Internet gateway. This element contains the following information:

    • Tags: One or more tags associated with the Internet gateway.

    • InternetGatewayId: The ID of the Internet gateway.

    • Attachments: Information about the attachment to a VPC (always empty at creation).

Result sample
    "InternetGateway": {
        "Tags": [],
        "InternetGatewayId": "igw-12345678",
        "Attachments": []

The Internet 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.