After you create a change set for a stack, you must execute the change set to update the stack.

Prerequisites

A change set is created. For more information, see Create a change set.

Background information

Notice After you execute a change set for a stack, other change sets that are associated with the stack become invalid and are deleted. If the stack fails to be updated, you must create a new change set.

If you execute a change set on a stack that has a stack policy, the policy is executed when the stack is updated. You cannot specify a temporary stack policy that overwrites an existing policy when you execute a change set. To update protected resources, you must update the stack policy or directly update the stack.

Execute a change set in the ROS console

  1. Log on to the ROS console.
  2. In the left-side navigation pane, click Stacks.
  3. Click the stack ID in the Stack Name column.
  4. On the stack management page, click Change Sets.
  5. Execute a change set.
    • Method 1: On the Change Sets tab, find the change set that you want to execute, and click Execute in the Actions column.5
    • Method 2: On the Change Sets tab, click the name of the change set that you want to execute. On the change set management page, click Execute Change Set.7

    ROS immediately starts to update the stack.

    Note When you execute a change set, the RAM roles that are specified during the creation of the change set are used. You can view the RAM role on the Stack Information tab.

Execute a change set by using Alibaba Cloud CLI

You can use the aliyun ros ExecuteChangeSet command to execute a change set.

Specify the ID of the change set that you want to execute. Example:

 aliyun ros ExecuteChangeSet --ChangeSetId <change_set_id> --RegionId <region_id>

After you run this command, ROS starts to update the stack. If you need to view the stack update progress, use the aliyun ros GetStack command.