Menu
AWS Support
User Guide (API Version 2013-04-15)

Monitoring Trusted Advisor Check Results with Amazon CloudWatch Events

You can use Amazon CloudWatch Events to detect and react to changes in the status of Trusted Advisor checks. Then, based on the rules that you create, CloudWatch Events invokes one or more target actions when a check status changes to the value you specify in a rule. Depending on the type of status change, you might want to send notifications, capture status information, take corrective action, initiate events, or take other actions. You can select the following types of targets when using CloudWatch Events as a part of your Trusted Advisor workflow:

  • AWS Lambda functions

  • Amazon Kinesis streams

  • Amazon Simple Queue Service queues

  • Built-in targets (CloudWatch alarm actions)

  • Amazon Simple Notification Service topics

The following are some use cases:

  • Use a Lambda function to pass a notification to a Slack channel when check status changes.

  • Push data about checks to a Kinesis stream to support comprehensive, real-time status monitoring.

For examples of using CloudWatch Events and Lambda functions to automate the response to Trusted Advisor check results, see Trusted Advisor Tools.

The remainder of this topic describes the basic procedure for creating a CloudWatch Events rule for Trusted Advisor. Before you create event rules for Trusted Advisor, however, you should do the following:

To create a CloudWatch Events rule for Trusted Advisor:

  1. Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

  2. In the navigation bar, choose the US East (N. Virginia) Region.

  3. In the navigation pane, choose Events.

  4. Choose Create rule, and then under Event Source, for Service Name, choose Trusted Advisor.

  5. Specify status values:

    • To make a rule that applies to all status values, choose Check Item Refresh Status, and then choose Any status (the default).

    • To make a rule that applies to some status values only, choose Specific status(es), and then choose one or more status values from the list.

  6. Specify Trusted Advisor checks:

    • To make a rule that applies to all Trusted Advisor checks, choose Any check.

    • To make a rule that applies to some checks only, choose Specific check(s), and then choose one or more check names from the list.

  7. Specify AWS resources:

    • To make a rule that applies to all resources, choose Any resource ID.

    • To make a rule that applies to one or more resources only, choose Specific resource ID(s) by ARN. Then, enter the ARNs of the resources.

  8. Review your rule setup to make sure it meets your event-monitoring requirements.

  9. In the Targets area, choose Add target*.

  10. In the Select target type list, choose the type of target you prepared to use with this rule. Then, configure any additional options required by that type.

  11. Choose Configure details.

  12. On the Configure rule details page, enter a name and description for the rule. To enable the rule as soon as it's created, choose the State box.

  13. If you're satisfied with the rule, choose Create rule.