All Products
Search
Document Center

Resource Orchestration Service:Execute a change set

Last Updated:Jan 24, 2024

Resource Orchestration Service (ROS) applies changes that are contained in a change set to a stack only after you execute the change set. This topic describes how to execute a change set.

Prerequisites

A change set is created. For more information, see Use a change set to update a stack.

Background information

Important

After you execute a change set to update a stack, ROS automatically deletes other change sets that are associated with the stack because they become invalid for the updated stack. 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, ROS forcefully executes the policy when ROS updates the stack. When you execute a change set, you cannot specify a temporary stack policy that overwrites an existing stack policy. To update protected resources, you must update the stack policy or update the stack.

Supported methods

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. On the Stacks page, find the stack whose change set you want to execute and click the stack ID.

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

  5. Use one of the following methods to execute the 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

    After you execute the change set, ROS immediately updates the stack.

    Note

    When you execute a change set, the Resource Access Management (RAM) role that is specified when you create the change set is used. You can view the RAM role on the Stack Information tab.

Execute a change set by using Alibaba Cloud CLI

  1. Install Alibaba Cloud CLI.

    For more information, see Windows.

  2. Configure an Alibaba Cloud credential.

    For more information, see Configure a credential in interactive mode (fast).

  3. Execute a change set.

    To execute a change set, run the aliyun ros ExecuteChangeSet command and specify 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 update progress of the stack that is associated with the change set.

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

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