To add a stack instance to a stack group, you must specify the target account and region. A stack instance can only belong to a single stack group.

Prerequisites

Ensure that you have created a stack group. For more information, see Create a stack group.

Background information

To add a stack to a stack group, you must first create a stack instance in the stack group, and then create the stack in the specified target account and region. Each stack instance corresponds to a stack.

Procedure

  1. Log on to the Resource Orchestration Service (ROS) console.
  2. Select the region where the target stack group resides from the drop-down list in the upper-left corner.
  3. In the left-side navigation pane, click Stack Groups.
  4. On the Stack Groups page, click 1 in the Actions column corresponding to the stack group, and choose Add Stack to Stack Group from the shortcut menu.
  5. In the Set Deployment Options step of the Add Stack to Stack Group wizard, configure the accounts, regions, maximum number of concurrent accounts, and fault tolerance for the stack group as prompted, and click Next.
    For information about how to set Maximum Number of Concurrent Accounts and Fault Tolerance, see Stack group deployment options.
  6. In the Specify Override Settings step of the Add Stack to Stack Group wizard, select whether to override the parameter values as prompted, and click Next.
    When adding a stack to a stack group, you can re-define the parameter values in the template. After the stack is created, go to the Stacks page. Click the stack ID in the Stack Name column, and then click the Parameters tab to view the re-defined parameter values.
  7. In the Confirm step of the Add Stack to Stack Group wizard, configure the override values of the stack instance as prompted, and click Add.
  8. View the stack instance.
    1. On the Stack Groups page, click the stack group name.
    2. On the stack group management page, click the Instances tab.

      You can view the account, region, ID, and status of the stack instance.

      After the stack instance is added, Expired is displayed in the Instance Status column because the stack is being created. After the stack is created, Latest is displayed in the Instance Status column. On the Stacks page, you can view the stack creation status.