After a custom rule is triggered, a Function Compute function in the custom rule evaluates resources, calls the PutEvaluations operation of Cloud Config, and then returns the evaluation result. After you execute a custom rule, the evaluation result shows no data. To troubleshoot the issue, use one of the following methods:
- Use ActionTrail
Log on to the ActionTrail console and use the event query feature to view the invocation records of the PutEvaluations operation.
If the invocation records of the PutEvaluations operation exist after you execute a custom rule, the custom rule was executed and no resources were matched. Otherwise, the custom rule failed to be executed.
Select the Singapore (Singapore) region. - Use Function Compute
If the logging feature is enabled for the function, you can view the invocation records of the PutEvaluations operation. For more information about how to enable the logging feature for a function, see Configure the logging feature.
After you execute a custom rule, print logs on the Code tab and view the invocation records of the PutEvaluations operation on the Logs tab. If the invocation records of the PutEvaluations operation exist, the custom rule was executed and no resources were matched. Otherwise, the custom rule failed to be executed.