

# Monitoring Amazon Trusted Advisor check results with Amazon EventBridge
<a name="cloudwatch-events-ta"></a>

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](https://github.com/aws/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 [Change Amazon Web Services Support Plans](changing-support-plans.md).
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?](https://docs.amazonaws.cn/eventbridge/latest/userguide/eb-what-is.html) 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/](https://console.amazonaws.cn/events/).

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

1. In the navigation pane, choose **Rules**.

1. Choose **Create rule**.

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

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

1. On the **Build event pattern** page, for **Event source**, choose **Amazon events or EventBridge partner events**.

1. Under **Event pattern**, keep the default value for **Amazon Web Services services**.

1. For **Amazon Web Services service**, choose **Trusted Advisor**.

1. For **Event type**, choose **Check Item Refresh Status**.

1. 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.

1. 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.

1. 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.

1. Choose **Next**.

1. 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.

1. Choose **Next**.

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

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

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