05 / 06

What is an EventBridge (CloudWatch Events) trigger?

Amazon EventBridge (formerly CloudWatch Events) is a serverless event bus that enables you to connect application data from your own apps, AWS services, and Software-as-a-Service (SaaS) applications. You can use EventBridge to trigger Lambda functions in response to system events, custom application events, or scheduled rules.

Types of EventBridge Triggers for Lambda
  1. 1

    Scheduled rules – invoke Lambda at fixed intervals (e.g., cron jobs)

  2. 2

    AWS service events – respond to events from services like EC2, S3, RDS

  3. 3

    Custom events – send events from your own applications

  4. 4

    SaaS partner events – respond to events from integrated SaaS providers

Steps to Use EventBridge as a Trigger
  1. 1

    Open Amazon EventBridge in the AWS Console

  2. 2

    Create a new rule and choose event pattern or schedule

  3. 3

    As target, choose 'Lambda function' and select the function

  4. 4

    Set permissions to allow EventBridge to invoke the Lambda

  5. 5

    Save the rule and test by generating the associated event

Sample Scheduled Rule (Cron) JSON