Execute a change set

更新时间:
复制 MD 格式

ROS applies the changes in a change set to a stack only after you execute it.

Prerequisites

Ensure that you have created a change set. For more information, see Update a stack by using a change set.

Background

Important

After you execute a change set, Resource Orchestration Service (ROS) automatically deletes other change sets for the same stack because they become invalid. If the stack update fails, you must create a new change set.

If you execute a change set on a stack that has a stack policy, ROS enforces the policy when it updates the stack. When you execute a change set, you cannot specify a temporary stack policy to override the existing policy. To update protected resources, you must update the stack policy or update the stack directly.

Methods

Using the ROS console

  1. Log on to the ROS console.

  2. In the left-side navigation pane, click Stacks.

  3. On the Stacks page, click the name of the target stack.

  4. On the stack details page, click the Change Sets tab.

  5. Execute the change set.

    • Method 1: On the Change Sets tab, find the change set and click Run in the Actions column.

    • Method 2: On the Change Sets tab, click the name of the change set. On the change set details page, click Execute Change Set.

    After you execute the change set, ROS starts to update the stack.

    Note

    When you execute a change set, ROS uses the Resource Access Management (RAM) role specified when the change set was created. You can view the RAM role on the Stack Information tab.

Using the Alibaba Cloud CLI

  1. Install the Alibaba Cloud CLI.

    For more information, see Install Alibaba Cloud CLI.

  2. Configure Alibaba Cloud credentials.

    For more information, see Configure credentials.

  3. Execute the change set.

    To execute a change set, run the aliyun ros ExecuteChangeSet command with the change set ID and the region ID. For more information, see ExecuteChangeSet.

     aliyun ros ExecuteChangeSet --ChangeSetId <change_set_id> --RegionId <region_id>
  4. View the stack update progress.

    To view the stack update progress, run the aliyun ros GetStack command with the stack ID and the region ID. For more information, see GetStack.

     aliyun ros GetStack --StackId <stack_id> --RegionId <region_id>