All Products
Search
Document Center

Resource Orchestration Service:Create a stack group

Last Updated:Jun 16, 2026

You can use the management account or a delegated administrator account of a resource directory to create a stack group with the service-managed permission model. ROS then uses service-managed permissions to automatically deploy stacks within members in the specified folders.

Procedure

  1. Log on to the ROS console by using the management account or a delegated administrator account of your Resource Directory.

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

  3. In the top navigation bar, select the region where you want to create a stack group from the region drop-down list.

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

  5. Specify the template and click Next.

    Select a Template Import Method and configure the template.

    • Enter Template Content: In the Template Content section, enter a ROS or Terraform template. For more information about how to write a template, see ROS template structure and Terraform template structure.

    • My Templates: Select an existing template and template version. The template content is automatically populated. For more information about how to create a template, see Create a template and Create an architecture diagram template.

    • Use URL: Enter the URL of the template and click Get Template Content. The template content is automatically populated.

      To use the URL of a ROS template file stored in an OSS bucket, configure cross-origin resource sharing (CORS). For more information, see Access ROS templates across domains.

    • Public Templates: Select a public template. The template content is automatically populated.

    • Shared Templates: Select a template and template version shared by another user. The template content is automatically populated. For more information about how to share a template, see Share a template with an Alibaba Cloud account.

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

  7. On the Configure Stack Group page, select Service-managed Permissions, and then click Next.

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

    Note

    The parameters that you must configure vary based on the template. Follow the on-screen instructions to configure the parameters.

    Parameter

    Description

    Resource Directories

    The resource directories from which you select folders. ROS deploys stacks within all members in the selected folders.

    If you select Root, ROS deploys stacks within all members in the resource directory.

    Automatic Deployment

    Whether ROS automatically deploys stack instances within members when you change the members in the folder. Valid values:

    • Enabled: When you add members to the folder, ROS automatically deploys stack instances within the new members. When you remove members, ROS automatically deletes the corresponding stack instances.

    • Disabled: Changes to folder membership do not affect existing stack instances.

    Note

    You can also modify the automatic deployment settings on the Stack Group Information tab of the stack group that you created. For more information, see Configure automatic deployment for stacks.

    Account Removal Behavior

    Whether to delete stacks from members when you remove the members from the folder. Valid values:

    • Delete Stacks: Deletes stacks from members when you remove them from the folder.

    • Retain Stacks: Retains stacks within members when you remove them from the folder.

    Regions

    The regions where you want to deploy stacks.

    Note

    You can select up to 20 regions.

    Resource Group

    The resource group to which the stack group belongs.

    Select a resource group based on your business requirements. If you do not select one, the stack group is added to the default resource group.

    For more information about how to create a resource group, see Create a resource group.

    Tags

    Add tags to or remove tags from resources. You can add up to 20 tags to each resource.

    Maximum Number of Concurrent Accounts

    The maximum number of accounts within which stacks are deployed concurrently in each region.

    For more information about how to specify the value, see Overview.

    Fault Tolerance

    The maximum number of accounts within which stack operation failures are allowed in each region. If this threshold is exceeded in a region, ROS stops the operation in that region and all remaining regions.

    For more information about how to specify the value, see Overview.

    Region Concurrency

    The deployment mode for stack instances across regions.

    • Sequential: Deploys stack instances in each specified region one at a time, in the order you specified.

    • Parallel: Deploys stack instances in all specified regions at the same time.

    Whether to Expand Modules in Current Account

    This parameter applies only when modules are used in the template. To expand modules within the current account, the modules must exist in the current account. To expand modules within execution accounts, the modules must exist in the execution accounts.

    Note

    If you do not specify the Accounts and Regions, ROS creates a stack group but does not create any stack instances. If you need to deploy a stack in a specific account and region, you must also create stack instances. For more information, see Step 4 (Optional): Create a stack instance.

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

Check the result

After the stack group is created, you can view it on the Stack Groups page by using the management account or delegated administrator account.

Click the stack group name and then click the Instance tab to view the status of stack instances in member accounts. A status of Current indicates successful deployment. You can then log on to the ROS console as a member account to view the deployed stacks in each region. For more information, see Log on to the Alibaba Cloud console as a member account.

References