All Products
Search
Document Center

Resource Orchestration Service:Mark dirty resources

Last Updated:Jul 09, 2025

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

  1. Log on to the Resource Orchestration Service console.

  2. 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: MyTestVpc
  3. Mark the VPC as a dirty resource.

    1. In the left-side navigation pane, click Stacks.

    2. 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.

    3. On the Stacks page, find the stack that you want to update, and click Update in the Operation column.

    4. In the Edit Stack page, in the More Configurations section, select the resource that you want to rebuild.image

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