Creating a VPC

You can create a Virtual Private Cloud (VPC) to isolate your resources in a virtual network dedicated to your account.

This procedure describes the Expert Mode using either Cockpit or AWS CLI, and requires you to create all the elements of the VPC platform on your own. Using Cockpit, you can also use the Basic mode to create a basic VPC platform. For more information, see Basic Mode: Creating a Classic VPC Platform.

For more information about the different steps to create your VPC platform in Expert Mode, see Expert Mode: Creating a Custom VPC Platform.

Creating a VPC Using Cockpit

  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 IP addresses 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 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 IP addresses 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 IP addresses 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.