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
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
-
Console: Using the ROS console.
For more information, see Execute a change set in the ROS console.
-
API: Calling an API operation.
For more information, see ExecuteChangeSet.
-
Alibaba Cloud CLI: Using the Alibaba Cloud CLI.
For more information, see Execute a change set by using the Alibaba Cloud CLI.
Using the ROS console
-
Log on to the ROS console.
-
In the left-side navigation pane, click Stacks.
-
On the Stacks page, click the name of the target stack.
-
On the stack details page, click the Change Sets tab.
-
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.
NoteWhen 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
Install the Alibaba Cloud CLI.
For more information, see Install Alibaba Cloud CLI.
Configure Alibaba Cloud credentials.
For more information, see Configure credentials.
-
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> -
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>