> For the complete documentation index, see [llms.txt](https://karansingh.gitbook.io/tutorialsdojo-wrong-answers-aws-sec-spec/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://karansingh.gitbook.io/tutorialsdojo-wrong-answers-aws-sec-spec/logging-and-monitoring-68/cloudwatch-events-+-config.md).

# CloudWatch Events + Config

* Use **CloudWatch Events to detect and react to changes in the status of Config events**.<br>
* You can **create a rule that runs whenever there is a state transition, or when there is a transition to one or more states that are of interest**.<br>
* Then, **based on rules you create, CloudWatch Events invokes one or more target actions when an event matches the values you specify in a rule**.<br>
* You can **use this capability to create a CloudWatch Events rule to detect non-compliant notifications** for specific resource types or specific rules and **trigger Lambda functions to take corrective action** and also configure **notifications for specific resource types to specific targets such as SNS topics or SQS queues**.<br>
* **When Config detects changes that are non-compliant, you can create a CloudWatch Events rule that will trigger an Lambda function that can perform the corrective action**.
