Help Center/ Cloud Connect/ Best Practices/ Connecting the VPCs in Your Account to the VPCs in Another Account
Updated on 2024-09-29 GMT+08:00

Connecting the VPCs in Your Account to the VPCs in Another Account

Scenarios

You can load the VPCs in other accounts to your own cloud connection so that these VPCs can communicate with the VPCs in your account.

For details about the regions where cloud connections are available, see Region Availability.

Figure 1 shows an example.

Figure 1 Connecting VPCs in different accounts
  • Account A: This is your account. You need to ask the other account (account B) to allow you to load VPC 2 to your cloud connection.
  • Account B: This is the other account that grants you the permission to load VPC 2 to your cloud connection.

    (If multiple VPCs in account B need to communicate with each other across regions, you can request permission to load all these VPCs to your cloud connection.)

  • You load VPC 1 and VPC 2 to your cloud connection to enable the two VPCs to communicate with each other. The other user does not need to create a cloud connection, purchase a bandwidth package, or assign an inter-region bandwidth.

Prerequisites

You have the permissions of Tenant Guest, VPC Administrator, and Cross Connect Administrator for the region where the VPC in the other account resides.

In this scenario, account A must have the permissions of the preceding roles in the CN South-Guangzhou region where VPC 2 of account B resides.

For details, see Permission Management.

Procedure

  1. Create a VPC in your account, ask this other user to create another VPC in their account, and ensure that CIDR blocks of the two VPCs do not conflict with each other.

    VPC in your account: 172.16.100.0/24

    VPC in the other account: 172.16.200.0/24

    For details, see Creating a VPC.

  2. Create a cloud connection.

    For details, see Creating a Cloud Connection.

  3. Ask the other user to allow you to load VPC 2 to your cloud connection.

    For details, see Allowing Other Accounts to Load Your VPCs.

  4. Load the two VPCs to your cloud connection.

    For details about how to load a VPC of the other user, see Loading the VPCs of Other Accounts.

    For details about how to load the VPC in your account, see Loading a Network Instance.

  5. Buy a bandwidth package and bind it to your cloud connection.

    For details, see Purchasing a Bandwidth Package.

  6. Assign an inter-region bandwidth.

    For details, see Assigning Inter-Region Bandwidth.

Verification

View the routes of the cloud connection and verify these VPCs can communicate with each other.

For details, see Viewing Route Information.