After you create a change set, you can view the change records and JSON-formatted change details.
Prerequisites
A change set is created. For more information, see Create a change set.View a change set in the ROS console
- Log on to the ROS console.
- In the left-side navigation pane, click Stacks.
- Click a stack ID in the Stack Name column. On the stack management page, click Change Sets to view the change sets of the stack.
- Click the name of the target change set.On the change set details page, view the basic information, change records, templates, and JSON-formatted change details of the change set.
The changes in the template are displayed in the Change Records and JSON Changes tabs. If you need to make additional changes to the template, you can create additional change sets.
View a change set through Alibaba Cloud CLI
- Use the aliyun ros ListChangeSets command to view the ID of the stack to which the change set belongs.Example:
aliyun ros ListChangeSets --StackId <stack_id> --RegionId <region_id>
ROS returns the following information on the stack to which the change set belongs:{ "TotalCount": 1, "PageSize": 10, "RequestId": "A94A31B7-EC3A-4528-90D8-FA31FA4D13BB", "PageNumber": 1, "ChangeSets": [ { "Status": "CREATE_COMPLETE", "ChangeSetId": "<change_set_id>", "ExecutionStatus": "AVAILABLE", "CreateTime": "2020-03-03T06:36:20", "ChangeSetType": "UPDATE", "RegionId": "cn-hangzhou", "ChangeSetName": "test-change-set", "StackName": "test-change-set", "StackId": "<stack_id>" } ] }
- Use the aliyun ros GetChangeSet command to view the change set ID.
Example:
aliyun ros GetChangeSet --ChangeSetId <change_set_id> --RegionId <region_id>
ROS returns the following information on the change set:{ "ExecutionStatus": "AVAILABLE", "Parameters": [ { "ParameterValue": "<account_id>", "ParameterKey": "ALIYUN::AccountId" }, { "ParameterValue": "None", "ParameterKey": "ALIYUN::NoValue" }, { "ParameterValue": "cn-hangzhou", "ParameterKey": "ALIYUN::Region" }, { "ParameterValue": "<stack_id>", "ParameterKey": "ALIYUN::StackId" }, { "ParameterValue": "test-change-set", "ParameterKey": "ALIYUN::StackName" }, { "ParameterValue": "<tenant_id>", "ParameterKey": "ALIYUN::TenantId" }, { "ParameterValue": "1", "ParameterKey": "Count" } ], "TimeoutInMinutes": 60, "Changes": [ { "Type": "Resource", "ResourceChange": { "LogicalResourceId": "WaitConditionHandle", "Replacement": "False", "PhysicalResourceId": "WaitConditionHandle", "ResourceType": "ALIYUN::ROS::WaitConditionHandle", "Action": "Modify", "Details": [ { "Evaluation": "Static", "Target": { "Name": "Count", "RequiresRecreation": "Never", "Attribute": "Properties" }, "CausingEntity": "Count", "ChangeSource": "ParameterReference" }, { "Evaluation": "Dynamic", "Target": { "Name": "Count", "RequiresRecreation": "Never", "Attribute": "Properties" }, "ChangeSource": "DirectModification" } ], "Scope": [ "Properties" ] } } ], "ChangeSetId": "<change_set_id>", "StackId": "<stack_id>", "DisableRollback": false, "ChangeSetName": "test-change-set", "ChangeSetType": "UPDATE", "StackName": "test-change-set", "Status": "CREATE_COMPLETE", "CreateTime": "2020-03-03T06:36:20", "RegionId": "cn-hangzhou", "RequestId": "DB9B48C8-C22D-4009-A3B0-85FDF3D26D2D" }
The
Changes
property lists changes made to the resources. For more information, see Data structures.