All Products
Search
Document Center

Resource Orchestration Service:Step 3: Create a stack group

Last Updated:Jan 02, 2024

If you want to automatically deploy stacks within accounts in folders of a resource directory, you can use the management account or a delegated administrator account in the resource directory to create a stack group by using the service-managed permission model. This way, Resource Orchestration Service (ROS) uses service-managed permissions to deploy stacks within members in the folders.

Procedure

  1. Log on to the ROS console console by using the management account or a delegated administrator account in your resource directory.

  2. In the left-side navigation pane, 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. In the Select Template step, set Specify Template to one of the following values, specify a template based on your business requirements, and then click Next.

    • Select an Existing Template: If you use this value, specify Template Import Method and configure the template parameters. Valid values of Template Import Method:

      • Use URL: Enter the URL of the template and click Extract JSON Content. The template content is autopopulated.

        If you want to use the URL of a ROS template that is stored in an Object Storage Service (OSS) bucket, you must configure cross-origin resource sharing (CORS). For more information, see Configure CORS for a template.

      • Enter Template Content: In the Template Content code editor, enter the content of the JSON or YAML template. For more information about how to create a JSON or YAML template, see Template structure.

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

      • Shared Template: Select a shared template and a template version. The template content is autopopulated. For more information about how to share a template, see Share a template with Alibaba Cloud accounts.

    • Use a Sample Template: If you use this value, select a sample template from the Sample Templates drop-down list. The template content is autopopulated.

  6. In the Configure Parameters step, configure the Stack Group Name and Stack Group Description parameters, and click Next.

  7. In the Configure Stack Group step, set Permissions to Service-managed Permissions and click Next.

  8. In the Set Deployment Options step, configure the following parameters and click Next.

    Note

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

    Parameter

    Description

    Resource Directories

    The resource directories in which you select folders to deploy stacks within all members in the folders.

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

    Automatic Deployment

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

    • Enabled: If you add members to the folder after you enable automatic deployment, ROS automatically deploys stack instances within the members. If you remove members from the folder after you enable automatic deployment, ROS automatically deletes stack instances from the members.

    • Disabled: If you change the members in the folder after you disable automatic deployment, the stack instances remain unchanged.

    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

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

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

    • Retain Stacks: retains the stacks within members when you remove the members 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 that you want to use to manage the stack group.

    Select the resource group to which you want to add the stack group based on your business requirements. If you do not select a resource group, 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 at the same time in each region.

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

    Fault Tolerance

    The number of accounts within which stack operation failures are allowed in each region. If the value of this parameter is exceeded in a region, ROS stops the operation in the region. If the operation is stopped in one region, the operation is no longer performed in other regions.

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

    Region Concurrency

    The mode that you want to use to deploy stack instances across regions.

    • Sequential: deploys stack instances in each specified region based on the specified sequence of regions. ROS deploys stack instances in one region at a time.

    • Parallel: deploys stack instances in parallel in all specified regions.

    Whether to Expand Modules in Current Account

    This parameter takes effect only when modules are used in the template. If you want to expand modules within the current account, the modules must exist in the current account. If you want to expand modules within execution accounts, the modules must exist in the execution accounts.

    Note

    If you do not specify the Accounts or Regions parameter, you can create only a stack group in ROS. In this case, if you want to deploy stacks within specified accounts in specified regions, you must separately create stack instances. For more information, see Step 4: (Optional) Create stack instances.

  9. In the Check and Confirm step, confirm the information about the stack group and click Create Stack Group.

Check the result

After the stack group is created, go to the Stack Groups page to view the stack group that is created within the management account or delegated administrator account in your resource directory.

Click the name of the stack group. On the stack group details page, click the Instances tab to view the status of the stack instances that you created within the members. If the stack instances are in the Current state, the stacks are deployed. Then, log on to the ROS console as a member to view the stacks in the specified regions. For more information, see Use a member to log on to the Alibaba Cloud Management Console.

References