Monitoring AWS Trusted Advisor check results with Amazon EventBridge - AWS Support

Monitoring AWS Trusted Advisor check results with Amazon EventBridge

You can use EventBridge to detect when your checks for Trusted Advisor change status. Then, based on the rules that you create, EventBridge invokes one or more target actions when the status changes to a value that you specify in a rule.

Depending on the status change, you can send notifications, capture status information, take corrective action, initiate events, or take other actions. For example, you can specify the following target types if a check changes status from no problems detected (green) to recommended action (red).

  • Use an AWS Lambda function to pass a notification to a Slack channel.

  • Push data about the check to an Amazon Kinesis stream to support comprehensive and real-time status monitoring.

  • Send an Amazon Simple Notification Service topic to your email.

  • Get notified with an Amazon CloudWatch alarm action.

For more information about on how to use EventBridge and Lambda functions to automate responses for Trusted Advisor, see Trusted Advisor tools in GitHub.

Notes
  • Trusted Advisor delivers events on a best effort basis. Events are not always guaranteed to be delivered to EventBridge.

  • You must have an AWS Support plan to create a rule for Trusted Advisor checks. For more information, see Changing AWS Support Plans.

Follow this procedure to create an EventBridge rule for Trusted Advisor. Before you create event rules, do the following:

  • Familiarize yourself with events, rules, and targets in EventBridge. For more information, see What is Amazon EventBridge? in the Amazon EventBridge User Guide.

  • Create the target that you will use in your event rule.

To create an EventBridge rule for Trusted Advisor

  1. Open the Amazon EventBridge console at https://console.aws.amazon.com/events/.

  2. To change the Region, use the Region selector in the upper-right corner of the page and choose US East (N. Virginia).

  3. In the navigation pane, choose Rules.

  4. Choose Create rule.

  5. On the Define rule detail page, enter a name and description for your rule.

  6. Keep the default values for Event bus and Rule type, and then choose Next.

  7. On the Build event pattern page, for Event source, choose AWS events or EventBridge partner events.

  8. Under Event pattern, keep the default value for AWS services.

  9. For AWS service, choose Trusted Advisor.

  10. For Event type, choose Check Item Refresh Status.

  11. Choose one of the following options for check statuses:

    • Choose Any status to create a rule that monitors for any status change.

    • Choose Specific status(es), and then choose the values that you want your rule to monitor.

      • ERROR – Trusted Advisor recommends an action for the check.

      • INFO – Trusted Advisor can't determine the status of the check.

      • OK – Trusted Advisor doesn't detect an issue for the check.

      • WARN – Trusted Advisor detects a possible issue for the check and recommends investigation.

  12. Choose one of the following options for your checks:

    • Choose Any check.

    • Choose Specific check(s), and then choose one or more check names from the list.

  13. Choose one of the following options for AWS resources:

    • Choose Any resource ID to create a rule that monitors all resources.

    • Choose Specific resource ID(s) by ARN, and then enter the Amazon Resource Names (ARNs) that you want.

  14. Choose Next.

  15. In the Select target(s) page, choose the target type that you created for this rule, and then configure any additional options that are required for that type. For example, you might send the event to an Amazon SQS queue or an Amazon SNS topic.

  16. Choose Next.

  17. (Optional) On the Configure tags page, add any tags and then choose Next.

  18. On the Review and create page, review your rule setup and ensure that it meets your event monitoring requirements.

  19. Choose Create rule. Your rule will now monitor for Trusted Advisor checks and then send the event to the target that you specified.