You can use the change set feature to update the template and template parameters of a stack. This topic describes how to create a change set in the Resource Orchestration Service (ROS) console.
Prerequisites
Limits
State | Description |
---|---|
CREATE_COMPLETE | The stack is created. |
UPDATE_FAILED | The stack fails to be updated. |
UPDATE_COMPLETE | The stack is updated. |
ROLLBACK_COMPLETE | The stack is rolled back. |
ROLLBACK_FAILED | The stack fails to be rolled back. |
IMPORT_CREATE_COMPLETE | The stack is created by importing resources. |
IMPORT_UPDATE_COMPLETE | The stack is updated by importing resources. |
IMPORT_UPDATE_FAILED | The stack fails to be updated by importing resources. |
IMPORT_UPDATE_ROLLBACK_COMPLETE | The stack fails to be updated by importing resources but is rolled back. |
IMPORT_UPDATE_ROLLBACK_FAILED | The stack fails to be updated by importing resources and fails to be rolled back. |
CHECK_FAILED | The stack fails to be verified. |
CHECK_COMPLETE | The stack is verified. |
Create a change set in the ROS console
Create a change set by using Alibaba Cloud CLI
You can use Alibaba Cloud CLI to run the aliyun ros CreateChangeSet command to create a change set.
You must specify CREATE
as the type of the change set that you want to create. You must also specify a stack
name, a template, and a change set name and configure the required parameters. In
the following example, a change set named test-change-set
is created by using the oss://ros-templates/test-change-set.json?RegionId=cn-hangzhou
stack template.
aliyun ros CreateChangeSet --TemplateURL oss://ros-templates/test-change-set.json?RegionId=cn-hangzhou --StackId <stack_id> --ChangeSetName test-change-set --Parameters.1.ParameterKey Count --Parameters.1.ParameterValue 1