Creating a VPC
You can create a Virtual Private Cloud (VPC) to isolate your resources in a virtual network dedicated to your account.
Creating a VPC Using Cockpit v1
|
-
Click VPC > VPCs.
-
Click Create VPC > Expert Mode .
The CREATE VPC dialog box appears. -
In the Name field, type a name for the VPC.
This action adds a Name tag of 255 characters maximum. You can use any character, including accented letters.
-
In the CIDR field, type the range of IPs for your VPC, in CIDR notation.
-
Click Create to validate.
The VPC is created and appears on the VPCs page. -
(optional) To disable the network enhancement allowing instances of a same subnet to communicate with one another without security group rules required, add a tag to your VPC with osc.fcu.enable_lan_security_groups as key. For more information about how to add a tag, see Adding or Removing Tags. For more information about this network enhancement, see About VPCs > Subnet Routing and Security.
-
This tag must be added to your VPC before creating subnets into it.
-
The value of this tag is not taken into account, you can therefore specify any value for this tag.
-
Creating a Net Using Cockpit v2-beta
-
In the Nets dashboard, click
Create Net.
The CREATE NET dialog box appears. -
In the Name field, type a name for the Net.
This action adds a Name tag of 255 characters maximum. You can use any character, including accented letters.
-
In the IP range field, type the range of IP addresses for your Net, in CIDR notation.
-
(optional) Check the Dedicated box to place the virtual machines (VMs) launched in the Net on dedicated servers. For more information, see About Instances > Instance Tenancy and Dedicated Instances.
-
Click Create Net to validate.
The Net is created. -
(optional) To disable the network enhancement allowing VMs of a same Subnet to communicate with one another without security group rules required, add a tag to your Net with osc.fcu.enable_lan_security_groups as key. For more information about how to add a tag, see Adding or Removing Tags. For more information about this network enhancement, see About VPCs > Subnet Routing and Security.
-
This tag must be added to your Net before creating Subnets into it.
-
The value of this tag is not taken into account, you can therefore specify any value for this tag.
-
Creating a Net Using OSC CLI
See the CreateNet command sample in the documentation of the OUTSCALE API. |
Creating a VPC Using AWS CLI
-
To create a VPC, use the create-vpc command following this syntax:
Request sample$ aws ec2 create-vpc \ --profile YOUR_PROFILE \ --cidr-block 10.0.0.0/16 \ --instance-tenancy default \ --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. -
cidr-block
: The range of IPs for the VPC, in CIDR notation. -
(optional)
instance-tenancy
: The tenancy option for the instances launched into the VPC (default
|dedicated
). For more information, see About Instances > Instance Tenancy.If you do not specify any option, the tenancy option is set to
default
. -
endpoint
: The endpoint corresponding to the Region you want to send the request to.The create-vpc command returns the following elements:
-
Vpc
: Information about the newly created VPC. This element contains the following information:-
InstanceTenancy
: The tenancy option for the instances launched into the VPC. For more information, see About Instances > Instance Tenancy. -
State
: The state of the VPC. For more information, see About VPCs. -
VpcId
: The ID of the VPC. -
CidrBlock
: The range of IPs for the VPC, in CIDR notation.Result sample{ "Vpc": { "InstanceTenancy": "default", "State": "available", "VpcId": "vpc-12345678", "CidrBlock": "10.0.0.0/16", } }
The VPC is created.
-
-
-
(optional) To disable the network enhancement allowing instances of a same subnet to communicate with one another without security group rules required, add a tag to your VPC with osc.fcu.enable_lan_security_groups as key. For more information about how to add a tag, see Adding or Removing Tags. For more information about this network enhancement, see About VPCs > Subnet Routing and Security.
-
This tag must be added to your VPC before creating subnets into it.
-
The value of this tag is not taken into account, you can therefore specify any value for this tag.
-
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.