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
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 AWS Support plan to create a rule for Trusted Advisor checks. For more information, see Changing AWS 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
Open the Amazon EventBridge console at https://console.aws.amazon.com/events/
. -
To change the Region, use the Region selector in the upper-right corner of the page and choose US East (N. Virginia).
-
In the navigation pane, choose Rules.
-
Choose Create rule.
-
On the Define rule detail page, enter a name and description for your rule.
-
Keep the default values for Event bus and Rule type, and then choose Next.
-
On the Build event pattern page, for Event source, choose AWS events or EventBridge partner events.
-
Under Event pattern, keep the default value for AWS services.
-
For AWS service, choose Trusted Advisor.
-
For Event type, choose Check Item Refresh Status.
-
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.
-
-
-
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.
-
-
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.
-
-
Choose Next.
-
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.
-
Choose Next.
-
(Optional) On the Configure tags page, add any tags and then choose Next.
-
On the Review and create page, review your rule setup and ensure that it meets your event monitoring requirements.
-
Choose Create rule. Your rule will now monitor for Trusted Advisor checks and then send the event to the target that you specified.