All Products
Search
Document Center

Resource Orchestration Service:Create VPCs in multiple regions

Last Updated:Jun 16, 2026

Use Resource Orchestration Service (ROS) stack groups to create identically configured VPCs across multiple regions within a single Alibaba Cloud account.

Prerequisites

  • If you use the self-managed permission model to create a stack group, create an administrator account and one or more execution accounts, and manually create RAM roles in both to establish a trust relationship. For more information, see Authorize self-managed permissions.

  • If you use the service-managed permission model to create a stack group, configure a delegated administrator account. For more information, see Set up a delegated administrator account.

Step 1: Prepare a template

ROSTemplateFormatVersion: '2015-09-01'
Description: Creates One VPC instance
Parameters:
  CidrBlock:
    Type: String
    AllowedValues:
      - 10.0.0.0/8
      - 172.16.0.0/12
      - 192.168.0.0/16
    Label: VPC CIDR Block
    Default: 192.168.0.0/16
  VpcName:
    Type: String
    Label: VPC Name
    ConstraintDescription: '[2, 128] English or Chinese characters'
    MinLength: 2
    MaxLength: 128
    Default: MyVPC
Resources:
  Vpc:
    Type: ALIYUN::ECS::VPC
    Properties:
      CidrBlock:
        Ref: CidrBlock
      VpcName:
        Ref: VpcName
Outputs:
  VpcId:
    Value:
      Fn::GetAtt:
        - Vpc
        - VpcId

Template description:

  • The Parameters section lets you specify the VPC name and CIDR block when you create stack instances.

  • The Resources section defines the VPC resource.

  • The Outputs section returns the created VPC ID through VpcId.

Step 2: Create a stack group

  1. Log on to the Resource Orchestration Service (ROS) console.

  2. In the navigation pane on the left, click Stack Groups.

  3. In the top navigation bar, select the region for the stack group from the drop-down list.

  4. On the Stack Groups page, click Create Stack Group.

  5. On the Select Template page, choose to use an existing template, set Template Import Method to Enter Template Content, and enter the YAML template from Step 1: Prepare a template.

  6. On the Configure Parameters page, enter the Stack Group Name and Stack Group Description, configure the VPC parameters, and then click Next.

  7. On the Configure Stack Group page, set the Permission Model to Service-managed Permissions or Self-managed Permissions, and then click Next.

    For more information, see permission models.

  8. On the Set Deployment Options page, configure the deployment parameters, and then click Next.

    Note

    You can select a maximum of 20 regions.

  9. On the Check and Confirm page, verify the stack group information and click Create Stack Group.

Step 3: View the stack group

  1. In the left navigation pane, click Stack Groups.

  2. On the Stack Groups page, click the target Stack Group Name.

  3. Click the Instance tab to view the created stack instances and their corresponding stack IDs.

  4. Click a Stack ID. On the Resources tab, view the VPC information.

    CREATE_COMPLETE in the Status column confirms that the VPC was created.