liveBook · Manning

EventBridge

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

Amazon EventBridge is an event bus service that routes events between AWS services, applications, and other event producers and consumers.

EventBridge is an event bus that lets AWS services, third-party vendors, and customers publish and subscribe to events. Rules match incoming events and route them to one or more targets, such as Lambda functions. section 6.3.1

Use EventBridge in two practical ways:

  • Schedule a rule to publish an event every five minutes, invoking a Lambda function that checks a website. section 6.2
  • Match infrastructure events, such as an EC2 launch recorded by CloudTrail, and invoke Lambda to automate follow-up work. section 6.3.1
  • Filter events with attributes such as source, detail-type, eventSource, and eventName. section 6.3.1

Automated website health check

Create a Lambda function that sends an HTTP request and verifies expected text in the response. Configure an EventBridge rule to invoke it every five minutes, then use a CloudWatch alarm to notify you when checks fail. section 6.2

Tag newly launched EC2 instances

CloudTrail emits an event for an EC2 RunInstances API call. An EventBridge rule matches the event pattern and invokes Lambda, which can use the instance ID from the event to add a tag. section 6.3.1

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Explains event buses, rules, targets, event fields, and JSON filtering through two Lambda workflows.
Examples
Uses a five-minute website check and automatic tagging after EC2 instances launch.
What it assumes
Assumes basic AWS services and Lambda familiarity while teaching event fields, patterns, and routing through concrete examples.
What you can do after
Apply via the AWS Management Console by creating rules, event patterns, targets, and scheduled Lambda invocations.
How it connects
Connects EventBridge with Lambda, CloudTrail, EC2, CloudWatch, and AWS API events.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.