Help Center> Elastic Cloud Server> User Guide> Instances> Purchasing an ECS> Purchasing an ECS in a Shared Subnet
Updated on 2024-05-14 GMT+08:00

Purchasing an ECS in a Shared Subnet

Scenarios

VPC sharing allows multiple accounts to purchase and manage cloud resources in one VPC. With VPC sharing, you can create ECSs in shared subnets for improved resource management and reduced O&M costs.

For example, to make resource management easier, you can use account A to manage basic and public IT resources, such as VPCs and subnets. In addition, account A shares subnets in the VPC with other accounts.

  • Account A: the IT management account and the resource owner. It creates a VPC and subnets and shares subnets with other accounts, such as account B and C. Account A creates resources in Subnet-01.
  • Account B: a service account and a principal of the shared subnet. Account B creates ECSs in Subnet-02 shared by account A.
  • Account C: a service account and a principal of the shared subnet. Account C creates ECSs in Subnet-03 shared by account A.
Figure 1 Service planning

This section describes how to purchase an ECS in a shared subnet. 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. The principals only need to pay for the resources they 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 a resource sharing invitation.

    For details, see Responding to a Resource Sharing Invitation.

  2. Access the ECS console.
  3. Configure parameters required for purchasing an ECS.

    In the Configure Network step, select the VPC and the subnet shared by account A.

    Figure 2 Configuring network parameters

    For details about other configurations, see Purchasing an ECS.