Getting Started with Amazon CloudWatch Events - Amazon CloudWatch Events

Getting Started with Amazon CloudWatch Events

Note

Amazon EventBridge is the preferred way to manage your events. CloudWatch Events and EventBridge are the same underlying service and API, but EventBridge provides more features. Changes you make in either CloudWatch or EventBridge will appear in each console. For more information, see Amazon EventBridge.

Use the procedures in this section to create and delete CloudWatch Events rules. These are general procedures usable for any event source or target. For tutorials written for specific scenarios and specific targets, see Tutorials.

Each rule

Restrictions
  • The targets you associate with a rule must be in the same Region as the rule.

  • Some target types might not be available in every region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.

  • Creating rules with built-in targets is supported only in the AWS Management Console.

  • If you create a rule with an encrypted Amazon SQS queue as a target, you must have the following section included in your KMS key policy. It allows the event to be successfully delivered to the encrypted queue.

    { "Sid": "Allow CWE to use the key", "Effect": "Allow", "Principal": { "Service": "events.amazonaws.com" }, "Action": [ "kms:Decrypt", "kms:GenerateDataKey" ], "Resource": "*" }