All Products
Search
Document Center

Cloud Config:Why is my custom rule function not invoked?

Last Updated:Jul 17, 2026

If a custom rule function is not invoked after you create or rerun the rule, follow these steps to identify the cause and fix the issue.

Procedure

  1. Enable logging for the function to view its execution logs.

    For more information, see Configure logs.

  2. On the Invocation Logs tab, check for invocation logs.

    • Yes: The function was successfully invoked.

    • No: The function was not invoked, or the invocation failed. Proceed to Step 3.

  3. Call the GetConfigRule operation for an ordinary account or the GetAggregateConfigRule operation for a management account or member account to check whether the rule's function was invoked.

    • No: The LastFailedEvaluationTimestamp parameter is empty or predates the on-demand evaluation, which means the function was not invoked. Wait a few minutes and check again.

    • Yes: The LastFailedEvaluationTimestamp parameter postdates the on-demand evaluation, which means the function was invoked but failed. Check the LastErrorCode and LastErrorMessage parameters to identify the failure reason and recommended action.

      LastErrorCode

      LastErrorMessage

      Reason

      Actions

      ComponentClientException

      InvalidArgument

      The Request Type for the function is set to Handle HTTP Requests.

      1. Delete the function whose Request Type is set to Handle HTTP Requests.

        For more information, see Manage functions.

      2. Create a new function and set its Request Type to Handle Event Requests.

        For more information, see Create a function.

      AccessDenied

      The account has insufficient permissions.

      Ensure that the account used to create the custom rule has permissions to access Function Compute.

      ServiceNotFound

      The service specified in the custom rule does not exist.

      1. Delete the custom rule that contains the incorrect function ARN.

        For more information, see Delete a rule.

      2. Create a new custom rule with the correct function ARN.

        For more information, see Create a custom rule using a function in Function Compute.

      FunctionNotFound

      The function specified in the custom rule does not exist.

      1. Delete the custom rule that contains the incorrect function ARN.

        For more information, see Delete a rule.

      2. Create a new custom rule with the correct function ARN.

        For more information, see Create a custom rule using a function in Function Compute.

      ComponentServerException

      InternalServerError

      An internal error occurred in Function Compute.

      Submit a ticket to Function Compute.

      Timeout

      The function evaluation timed out.

      Run an on-demand evaluation for the custom rule again.

      For more information, see Run an on-demand evaluation.