After you create an endpoint service, you can add multiple service resources to the endpoint service. You can also remove the service resources that you no longer need from the endpoint service.
Prerequisites
An endpoint service is created. For more information, see the Create an endpoint service section of the Create and manage endpoint services topic.
Add service resources
In the top navigation bar, select the region where the endpoint service is deployed.
On the Endpoints Service page, find the endpoint service that you want to manage and click its instance ID.
On the details page of the endpoint service, click Add Service Resource.
In the Add Service Resource dialog box, select the desired zone that you want to distribute network traffic and add the service resource based on the rules described in the following section. Then, click OK.
If a service resource is deployed in the zone, you can select the service resource from the drop-down list.
If no service resource is deployed in the zone, you can click the drop-down list and create a service resource.
For more information about how to create a service resource, see the Create an SLB instance section of the Create and manage endpoint services topic.
If you want to add multiple service resources in multiple zones, click Add Service Resource.
Remove a service resource
After you remove a service resource from the endpoint service, other VPCs will be unable to access the service resource of the endpoint service over PrivateLink connections. Exercise caution when you perform this operation.
In the top navigation bar, select the region where the endpoint service is deployed.
On the Endpoints Service page, find the endpoint service that you want to manage and click its instance ID.
On the details page of the endpoint service, find the desired service resource and perform operations based on different situations.
If the service resource is not allocated to a zone of an endpoint:
Find the service resource that you want to delete and click Delete in the Actions column.
In the Remove Resource message, click OK.
If the service resource is allocated to a zone of an endpoint, you can remove the service resource only after you disconnect the endpoint from the endpoint service. For more information about how to disconnect an endpoint, see the Reject endpoint connection requests section of the Accept endpoint connection requests and manage endpoint connections topic.
References
AttachResourceToVpcEndpointService: adds a service resource to an endpoint service.
DetachResourceFromVpcEndpointService: removes a service resource from an endpoint service.