Use OOS to enable topics and groups in a Message Queue for Apache RocketMQ instance to inherit tags from the instance
Create and run a custom CloudOps Orchestration Service (OOS) template to propagate tags from a Message Queue for Apache RocketMQ instance to its topics and groups.
Limits
By default, OOS in a region manages only resources in that region. For example, OOS in the China (Hangzhou) region manages only ECS instances in China (Hangzhou). You can call API operations in other regions by specifying the region ID in the ACS::ExecuteAPI action, but we do not recommend this approach. Make sure the OOS region matches the region of the Message Queue for Apache RocketMQ instance that you want to manage. For more information, see Limits.
Procedure
Log on to the OOS console.
Create a child template named Ons_topicExtendInstanceTags.
For information about the sample template, see the Child template: Update tags of topics in a Message Queue for Apache RocketMQ instance based on the instance ID and other input conditions section in this topic. For information about how to create a template, see Create a template.
Create a child template named Ons_groupExtendInstanceTags.
For information about the sample template, see the Child template: Update tags of groups in a Message Queue for Apache RocketMQ instance based on the instance ID and other input conditions section in this topic. For information about how to create a template, see Create a template.
Create a parent template named RocketMQInstanceTagInherit in which the child templates are nested.
For information about the sample template, see the Parent template: Update tags of topics and groups in all Message Queue for Apache RocketMQ instances that reside in a specific region based on input conditions section in this topic. For information about how to create a template, see Create a template.
Create an execution for the parent template RocketMQInstanceTagInherit.
Configure the following settings:
Select the region where the tags reside.
Select the tags to inherit.
Select the resource types that inherit the tags.
Specify whether to overwrite existing tags that have the same keys but different values.
For more information about executions, see Overview.
Log on to the Message Queue for Apache RocketMQ console and verify that topics and groups in the specified instances have inherited the instance tags.