Updated on 2024-11-26 GMT+08:00

Preparing Required Resources

To access DCS instances through a Virtual Private Cloud (VPC), create a VPC and configure security groups and subnets for it before using DCS. A VPC provides an isolated virtual network environment which you can configure and manage. Using VPCs enhances cloud resource security and simplifies network deployment.

Once you have created the required resources, you can use them for all DCS instances you subsequently create.

Creating a VPC and Subnet

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click Service List, and choose Network > Virtual Private Cloud to launch the VPC console.
  4. Click Apply for VPC.
  5. Create a VPC as prompted, retaining the default values unless otherwise required.

    For details about how to create a VPC, see "VPC and Subnet" > "VPC" > "Creating a VPC" in Virtual Private Cloud User Guide.

    After a VPC is created, a subnet is also created in the subnet. If the VPC needs more subnets, go to 6 and 7. Otherwise, go to Creating a Security Group.

    • When creating a VPC, CIDR Block indicates the IP address range of the VPC. If this parameter is set, the IP addresses of subnets in the VPC must be within the IP address range of the VPC.
    • If you create a VPC to provision DCS instances, you do not need to configure the CIDR block for the VPC.

  6. In the navigation pane on the left, choose Subnets.
  7. Click Create Subnet. Create a subnet as prompted, retaining the default values unless otherwise required.

    For details about how to create a subnet, see "VPC and Subnet" > "Subnet" in Virtual Private Cloud User Guide.

Creating a Security Group

Only DCS Redis 3.0 instances require security groups.

  1. Log in to the VPC console.
  2. In the navigation pane on the left, choose Access Control > Security Groups and then click Create Security Group in the upper right corner of the displayed page. Create a security group as prompted, retaining the default values unless otherwise required.

    For details about how to create a security group, see "Security" > "Security Group" > "Creating a Security Group" in Virtual Private Cloud User Guide.