Custom EventBridge rules automatically create O&M items based on the events that you subscribe to. Use custom rules when the default rules that Alibaba Cloud provides do not meet your event requirements, or when you need to subscribe to additional event types for compliance and security auditing of your resources. This helps you configure and enable the O&M features that you need in a targeted manner and improves O&M efficiency.
Prerequisites
EventBridge is activated. For instructions, see Activate EventBridge and grant permissions.
Configuration Audit (Cloud Config) is activated. For instructions, see Activate Cloud Config service.
A role that has the OOS OpenAPI permissions. If you do not have such a role, you can click Authorization to quickly create one when you configure the event target in the following procedure.
EventBridge and Cloud Config are free of charge for all valid Alibaba Cloud accounts during the public preview period.
Region limitations
EventBridge supports the automatic creation of O&M items in the Operation Center only in the following regions.
Region name | Region ID |
China (Qingdao) | cn-qingdao |
China (Shanghai) | cn-shanghai |
China (Beijing) | cn-beijing |
China (Zhangjiakou) | cn-zhangjiakou |
China (Ulanqab) | cn-wulanchabu |
China (Hangzhou) | cn-hangzhou |
China (Shenzhen) | cn-shenzhen |
China (Hohhot) | cn-huhehaote |
China (Heyuan) | cn-heyuan |
China (Guangzhou) | cn-guangzhou |
China (Chengdu) | cn-chengdu |
China (Hong Kong) | cn-hongkong |
Japan (Tokyo) | ap-northeast-1 |
Singapore | ap-southeast-1 |
Malaysia (Kuala Lumpur) | ap-southeast-3 |
Indonesia (Jakarta) | ap-southeast-5 |
US (Silicon Valley) | us-west-1 |
US (Virginia) | us-east-1 |
China East 2 Finance | cn-shanghai-finance-1 |
Thailand (Bangkok) | ap-southeast-7 |
Procedure
Log on to the EventBridge console.
In the left-side navigation pane, click Event Buses.
In the top navigation bar, select a region.
-
On the Event Buses page, click the default system event bus.
In the left-side navigation pane, click Event Rules.
-
On the Event Rules page, click Create Rule.
On the Create Rule page, complete the relevant parameter settings.
On the Configure Basic Info wizard page, enter the Name and Description of the event rule, and then click Next.
On the Configure Event Pattern wizard page, configure the event source type, the event source, and other parameters, and then click Next.
On the Configure Targets wizard page, configure the event target parameters, and then click Create.
For Service Type, select
acs.openapi.oos. The default value of API Version is2019-06-01. For API Type, selectCreateOpsItemto create O&M items. For API Parameters, configure the relevant parameters of theCreateOpsItemAPI. For Role, select a role that has the OOS OpenAPI permissions. If you do not have such a role, click Authorization to quickly create one.
After the EventBridge rule is created, you are automatically redirected to the default page, where you can view the EventBridge rule that you created.

When the rule detects an event, an O&M item is automatically created and appears in Operation Center > O&M Items in the CloudOps Orchestration Service console.
Example: create O&M items through Cloud Config event rules
After you create an event rule for Cloud Config non-compliance events in EventBridge, EventBridge monitors the non-compliance events of Cloud Config. When a non-compliance event occurs, the system automatically calls the OOS API to create an O&M item. The event flow is as follows:
Step 1: create a Cloud Config rule
This example uses RDS instances that are deployed across multiple zones to show how to create a rule from a template.
Go to the Cloud Config > Compliance Audit > Rules page and click Create Rule.
Enter
multi-zonein the search box, select rds-multi-az-support, and then click Next.
Keep the default values of the basic properties and click Next.
Keep the default values of the effective scope and click Next.
Keep the default values of the remediation settings and click Submit.
View the non-compliant resources in the Cloud Config rule list.

Step 2: create O&M items by creating an EventBridge rule
Go to the EventBridge > Event Buses page and select a region in the top navigation bar.
Click the default system event bus.
In the left-side navigation pane, click Event Rules.
-
On the Event Rules page, click Create Rule.
On the Create Rule page, complete the relevant parameter settings.
On the Configure Basic Info wizard page, enter the Name and Description of the event rule, and then click Next.
On the Configure Event Pattern wizard page, configure the following parameters, and then click Next.
Parameter name
Description
Example value
Event Source Type
Two types are supported: Alibaba Cloud Service Event Sources and Custom Event Sources.
Alibaba Cloud Service Event Sources
Event Source
The event source is the origin of events. It publishes the events that it produces to EventBridge.
acs.configEvent Type
Select the event type that you want to use to filter events.
config:CloudMonitor:ConfigurationNonCompliantNotificationThis configuration monitors non-compliance events from all rules that are enabled in Cloud Config.
On the Configure Targets wizard page, configure the following event target parameters, and then click Create.
Parameter name
Description
Parameter value
Service Type
Select the event target type.
acs.openapi.oosAPI Version
Keep the default API version.
2019-06-01API Type
Select
CreateOpsItemto create an O&M item.CreateOpsItemAPI Parameters
Configure the relevant parameters of the
CreateOpsItemAPI.For more information, see CreateOpsItem.
Role
Configure a role that has the OOS CreateOpsItem OpenAPI permissions. If you do not have such a role, click Authorization to quickly create one.
None
The following non-compliance event message is provided as an example to help you configure EventBridge rules.
Expand to view: audit non-compliance event message
{
"datacontenttype": "application/json;charset=utf-8",
"aliyunaccountid": "15634*******22",
"data": {
"annotation": "{\"configuration\":\"\",\"desiredValue\":\"i-bp*******z0tptjbgu\",\"operator\":\"Contains\",\"property\":\"$.Propertys[*].InstanceId\",\"reason\":\"FeaturePath not exist\"}",
"accountId": 15634*******22,
"riskLevel": "Warning",
"requestId": "f9bce983-1460-4b83-ac81-724b*******3a",
"dataType": "NonCompliantNotification",
"eventName": "NonCompliant",
"evaluationResultIdentifier": {
"orderingTimestamp": 1726747626751,
"evaluationResultQualifier": {
"resourceId": "i-bp*******z0tptjbgu",
"configRuleName": "ecs-instance-running-process-check",
"sourceIdentifier": "ecs-instance-running-process-check",
"configRuleId": "cr-8315e6183e*******b1",
"configRuleArn": "acs:config::15634*******22:rule/cr-8315e6183*******b1",
"captureTime": 1726747626751,
"regionId": "cn-hangzhou",
"resourceName": "ESS-asg-asg-bp1efisbt64zu16lebhm",
"resourceArn": "acs:ecs:cn-hangzhou:15634*******22:instance/i-bp*******z0tptjbgu",
"resourceGroupId": "rg-acfmzmhzoaad5oq",
"resourceOwnerId": 15634*******22,
"resourceType": "ACS::ECS::Instance"
}
},
"eventType": "ResourceCompliance",
"invokingEventMessageType": "ScheduledNotification",
"notificationCreationTime": 1726749483808,
"complianceType": "NON_COMPLIANT"
},
"subject": "acs:config:cn-hangzhou:15634*******22:instance/i-bp*******z0tptjbgu",
"aliyunoriginalaccountid": "15634*******22",
"source": "acs.config",
"type": "config:CloudMonitor:ConfigurationNonCompliantNotification",
"aliyunpublishtime": "2024-09-19T12:38:18.889Z",
"specversion": "1.0",
"aliyuneventbusname": "default",
"id": "315C0C75DB4E0B4CBA0DA*******AF6EB802C92E7-CMS",
"time": "2024-09-19T12:38:04.000Z",
"aliyunregionid": "cn-hangzhou"
}API parameter configuration details
The following table describes how to configure the parameters of the CreateOpsItem API.
Field | Type | Description | Example value |
RegionId | Partial event | The region in which the O&M item is created. |
|
Title | Partial event | The title of the O&M item. |
|
Description | Partial event | The description of the O&M item. |
|
Severity | Static field | The severity level. Valid values: Critical, High, Medium, and Low. Specify a value based on your requirements. | Medium |
Source | Partial event | The source of the O&M item. |
|
Category | Static field | The category. Valid values: Availability, Cost, Performance, Recovery, and Security. | Availability |
Priority | Static field | The priority. Valid values: 1 to 5. The value 1 indicates the highest priority. | 3 |
DedupString | Partial event | The deduplication string. Non-compliance events of the same resource in the same rule do not create duplicate O&M items. |
|
Resources | template | The list of resource ARNs associated with the O&M item. | For examples, see Resources after this table. |
Solutions | template | The list of solutions. | For examples, see Solutions after this table. |
Resources
Specify a variable:
{
"resourceArn":"$.data.evaluationResultIdentifier.evaluationResultQualifier.resourceArn"
}Specify a template:
["${resourceArn}"]Solutions
Specify a variable:
{
"document_url": "$.data.evaluationResultIdentifier.evaluationResultQualifier.helpUrls"
}Specify a template:
[{
"priority": 1,
"type": "url",
"url": "${document_url}",
"description": "Refer to the document to handle the issue."
}]Step 3: view the automatically created O&M items
O&M items are automatically created when the EventBridge rule detects a non-compliance event.
Go to the CloudOps Orchestration Service > Operation Center > O&M Items tab to view the O&M items that are automatically created for the non-compliant resources.