Monitoring Amazon Trusted Advisor check results with Amazon EventBridge - Amazon Web Services Support
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Monitoring Amazon 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 Amazon 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 a Business, Enterprise On-Ramp, or Enterprise Amazon Web Services Support plan to create a rule for Trusted Advisor checks. For more information, see Changing Amazon Web Services Support Plans.

  • As Trusted Advisor is a Global service, all Events are emitted to EventBridge in the US East (N. Virginia) Region.

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.amazonaws.cn/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 Amazon events or EventBridge partner events.

  8. Under Event pattern, keep the default value for Amazon Web Services.

  9. For Amazon Web 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 Amazon 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.