This topic describes the best practices for using tag policies to standardize tagging for members in your resource directory.
Background
If your organization has complex services on the cloud and uses a resource directory (RD) for multi-account management, you can use the management account of the RD to enable tag policies. These policies standardize tagging for all members in your resource directory.
When you first use tag policies, apply a policy to a member with few resources. After testing, you can attach the policy to more members, specific folders, or the Root folder.
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. |