Help Center> Elastic Load Balance> User Guide> User Guide for Dedicated Load Balancers> Load Balancer> Creating a Dedicated Load Balancer in a Shared Subnet
Updated on 2024-06-20 GMT+08:00

Creating a Dedicated Load Balancer in a Shared Subnet

Scenarios

With VPC sharing, you can create a dedicated load balancer in a subnet shared by another account. This helps you manage resources easily and reduce O&M costs.

The following describes how you can share subnets among several accounts. Let us call them accounts A, B, and C:

  • Account A: the IT management account and the owner of the VPC and subnets. Account A creates a VPC and three subnets and shares these subnets with accounts B and C. Account A can create resources in Subnet-01.
  • Account B: a service account and a principal of the shared subnet Subnet-02. Account B can create dedicated load balancers in Subnet-02.
  • Account C: a service account and a principal of the shared subnet Subnet-03. Account C can create dedicated load balancers in Subnet-03.
Figure 1 Service planning

For more information about VPC subnet sharing, see VPC Sharing in the Virtual Private Cloud User Guide.

Notes and Constraints

  • A principal can receive a maximum of 100 subnet shares.
  • VPC sharing is free. You only need to pay for the resources (such as ECSs and dedicated load balancers) you create in the shared subnets.

Prerequisites

Account A, as the resource owner, has created a VPC and subnets, and specified account B as the principal. For details, see Creating a Resource Share.

Procedure

  1. Log in to the Resource Access Manager console using account B and accept the resource share.

    For details, see Responding to a Resource Sharing Invitation.

  2. Go to the ELB console.
  3. Create a dedicated load balancer and configure basic and network parameters.

    Select the VPC and subnet shared by account A.

    Figure 2 Configuring network parameters

    For other parameters, see Creating a Dedicated Load Balancer.