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
-
Click VPC > Internet Gateways.
-
Click Create .
The CREATE INTERNET GATEWAY dialog box appears. -
Click Create to validate.
The Internet gateway is created and appears on the Internet Gateways page.
Creating an Internet Service Using Cockpit v2-beta
-
In the Internet Services dashboard, click
Create Internet Service.
The CREATE INTERNET SERVICE dialog box appears. -
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.
-
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:
$ aws ec2 create-internet-gateway \
--profile YOUR_PROFILE \
--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. -
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).
-
{
"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.