Introduction to CloudWatch Events
AWS CloudWatch Events are similar to alarms but instead of configuring alarms or thresholds, they match event patterns. These event patterns can relate to EC2 state change, a file upload to an S3 bucket, Key Management Service (KMS) key deletion, and so on. You can create CloudWatch Events rules that match the event pattern and take actions in response to those patterns. The following events are some of those supported by CloudWatch Events:
- EC2 state change
- Application programming interface (API) call reported by CloudTrail
CloudWatch Events provide a near-real-time stream of system events, and to configure it, we need to follow this series of steps:
- Go back to the CloudWatch console at https://us-west-2.console.aws.amazon.com/cloudwatch/home, then click on Rules and Create rule, as illustrated in the following screenshot:
CloudWatch Events rules are used to trigger events emitted...