Before you can create a stack, you must create a stack instance in a stack group. Then, you can create a stack for an account in the region of your choice. You can also update or delete stack instances as needed. When you delete a stack instance, you can choose whether to delete or retain the stack to which the stack instance corresponds. This topic describes how to create, update, and delete a stack instance.

Prerequisites

A stack group is created. For more information, see Create a stack group.

Create a stack instance

  1. Log on to the Resource Orchestration Service (ROS) console.
  2. In the left-side navigation pane, click Stack Groups.
  3. In the upper-left corner, select the region where your stack group resides from the drop-down list.
  4. On the Stack Groups page, find the stack group where you want to create a stack instance and choose 操作 > Create Stack Instance in the Actions column.
  5. In the Set Deployment Options step, set Accounts, Regions, Maximum Number of Concurrent Accounts, and Fault Tolerance, and then click Next.
  6. In the Specify Override Settings step, select the parameters whose values you want to override, and click Next.
    When you create a stack instance in a stack group, you can redefine the parameter values in the template. After the stack instance 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 redefined parameter values.
  7. In the Check and Confirm step, click Add.
    After the stack instance is created, you are redirected to the Stack Group page. Click the name of the stack group in which you created the stack instance, and then click the Instances tab to view the instance information, including the account, region, stack ID, and instance status.
    Note After you create a stack instance, the Instance Status is Expired. When the stack is ready, the Instance Status is automatically changed to Latest. Then, you can view the status of the stack on the Stacks page.

Update a stack instance

  1. On the Stack Groups page, find the stack group whose stack instances you want to update and choose 操作 > Update Stack Instance in the Actions column.
  2. In the Set Deployment Options step, set Accounts, Regions, Maximum Number of Concurrent Accounts, and Fault Tolerance, and then click Next.
  3. In the Specify Override Settings step, select the parameters whose values you want to override, and then click Next.
  4. In the Check and Confirm step, click Override.

Delete a stack instance

  1. On the Stack Groups page, find the stack group whose stack instances you want to delete and choose 操作 > Delete Stack Instance in the Actions column.
  2. In the Set Deployment Options step, set Accounts, Regions, Maximum Number of Concurrent Accounts, and Fault Tolerance, and then click Next.
  3. In the Check and Confirm step, click Delete.
  4. Select a method to delete the stack instance, and click OK.
    • Retain Resources: Only the stack instance is deleted.
    • Release Resources: Both the stack instance and the stack are deleted. Proceed with caution.