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.
![](https://support.huaweicloud.com/intl/en-us/usermanual-elb/en-us_image_0000001921038933.png)
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
- 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.
- Go to the ELB console.
- Create a dedicated load balancer and configure basic and network parameters.
Select the VPC and subnet shared by account A.
Figure 2 Configuring network parametersFor other parameters, see Creating a Dedicated Load Balancer.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot