If you need to create a change set for a running stack, follow the instructions in this topic to modify the template or template parameters. ROS generates a change set by comparing the stack with template changes that you submitted.
Prerequisites
Create a change set in the ROS console
Create a change set by using Alibaba Cloud CLI
You can use the aliyun ros CreateChangeSet command to create a change set.
You can specify new parameter values or modify parameters by using command options
and submit the template changes. In the following example, a change set named test-change-set
is created for a stack by using the current template (oss://ros-templates/test-change-set.json? RegionId=cn-hangzhou
):
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