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
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
ROS console: You can execute a change set in the ROS console.
For more information, see Execute a change set in the ROS console.
ROS API operation: You can execute a change set by calling a specific ROS API operation.
For more information, see Execute a change set.
Alibaba Cloud CLI: You can execute a change set by using Alibaba Cloud CLI.
For more information, see Execute a change set by using Alibaba Cloud CLI.
Execute a change set in the ROS console
Log on to the ROS console.
In the left-side navigation pane, click Stacks.
On the Stacks page, find the stack whose change set you want to execute and click the stack ID.
On the stack details page, click the Change Sets tab.
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.
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.
After you execute the change set, ROS immediately updates the stack.
NoteWhen 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
Install Alibaba Cloud CLI.
For more information, see Windows.
Configure an Alibaba Cloud credential.
For more information, see Configure a credential in interactive mode (fast).
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>
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>