Use a tag policy in single-account mode to standardize tagging operations across your Alibaba Cloud account.
Background information
As cloud adoption deepens, enterprises face growing resource management complexity, especially when resources are shared across subsidiaries and departments. Tag-based resource management helps you classify resources by purpose, scenario, and ownership, laying the foundation for unified production and sharing. The prerequisite for effective resource classification is standardized tagging. A tag policy lets you define the tags that must be added to resources.
We recommend that you first attach the tag policy to an account with a small number of resources for testing. After the test succeeds, attach the tag policy to a production account.
Use the advanced features of a tag policy
Beyond automatic detection, tag policies also support automatic remediation, pre-event interception of non-compliant tags, and automatic tag inheritance from resource groups. For supported services and resource types, see Services that support tag policies.
The following table describes the available advanced features.
|
Advanced feature |
Operation |
Result |
References |
|
Automatic tag remediation |
When you create or modify a tag policy, select Automatic Remediation. |
The system remediates non-compliant tags. |
|
|
Pre-event interception |
When you create or modify a tag policy, select the Pre-event Interception method. Pre-event interception is a pre-event method that is used to ensure tag compliance. You can use this feature in one of the following scenarios:
|
When you create a resource or add tags to an existing resource, the system checks tag compliance. If the required tags are missing, the operation fails. |
|
|
Automatic tag inheritance from a resource group |
When you create or modify a tag policy, select the Automatically Inherit Tags for Resources from Resource Groups policy scenario. |
After you create a resource in a specified resource group or add a resource to the group, the resource automatically inherits the tags of the resource group. |