When you use the mark dirty resources feature to rebuild resources without modifying the template, the system will delete and recreate the resources (the physical ID will change).
Introduction
When you need to rebuild resources without modifying the template, you can use this feature to trigger resource deletion and recreation (the physical ID will change). This topic uses the rebuilding of an ALIYUN::ECS::VPC resource as an example to describe the process.
Procedure
Log on to the Resource Orchestration Service console.
Create a stack that contains a VPC.
Use the following template to create a stack that contains an ALIYUN::ECS::VPC resource.
For more information, see Create a stack.
ROSTemplateFormatVersion: '2015-09-01' Resources: Vpc: Type: ALIYUN::ECS::VPC Properties: VpcName: MyTestVpcMark the VPC as a dirty resource.
In the left-side navigation pane, click Stacks.
In the top navigation bar, select the desired region of the stack from the region drop-down list. In this example, China (Hangzhou) is selected.
On the Stacks page, find the stack that you want to update, and click Update in the Operation column.
In the Edit Stack page, in the More Configurations section, select the resource that you want to rebuild.

Click Confirm. The VPC will be deleted and recreated. After the update is complete, the physical ID of the VPC resource will change.