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

  1. Click VPC > VPCs.

  2. Click Create VPC > Expert Mode .
    The CREATE VPC dialog box appears.

  3. 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.

  4. In the CIDR field, type the range of IPs for your VPC, in CIDR notation.

  5. Click Create to validate.
    The VPC is created and appears on the VPCs page.

  6. (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

  1. In the Nets dashboard, click IconAddFull Create Net.
    The CREATE NET dialog box appears.

  2. 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.

  3. In the IP range field, type the range of IP addresses for your Net, in CIDR notation.

  4. (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.

  5. Click Create Net to validate.
    The Net is created.

  6. (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 VPC Using AWS CLI

  1. 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": "pending",
                "VpcId": "vpc-12345678",
                "CidrBlock": "10.0.0.0/16",
            }
        }

        The VPC is created.

  2. (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 Method

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