--- title: Amazon EventBridge type: entity tags: [AWS, Event-Driven, Serverless, Observability] date: 2025-10-24 --- ## Overview **Amazon EventBridge** 是 AWS 的无服务器事件总线服务,用于构建事件驱动的架构。它可以接收来自 AWS 服务、SaaS 应用程序和自定义应用程序的事件,并根据定义的规则路由到目标。本方案中 EventBridge 作为跨账户事件转发的核心组件。 ## Key Capabilities - **Event Bus**:默认事件总线和自定义事件总线 - **Event Rules**:基于事件模式匹配捕获特定事件 - **Cross-Account Event Routing**:跨账户事件转发(该方案的核心功能) - **Event Filtering**:基于内容的事件过滤 - **Schema Registry**:事件模式注册和管理 ## In This Solution EventBridge 在多账户 CloudFormation StackSets 监控方案中的角色: 1. **事件捕获**:在每个成员账户部署 EventBridge Rules,捕获 CloudFormation 事件 2. **跨账户转发**:通过 Event Bus 的跨账户访问策略,将事件转发到管理账户的 Custom Event Bus 3. **路由到 CloudWatch**:管理账户 Event Bus 将事件路由到 central-cloudformation-logs Log Group ## Event Flow ``` Member Account: CloudFormation event → EventBridge Rule (pattern match) → Event Bus (custom, member account) → [Cross-account permission via IAM] → Event Bus (custom, management account) → CloudWatch Logs (central-cloudformation-logs) ``` ## Related Concepts - [[Cross-Account Monitoring]]:EventBridge 是跨账户监控的核心事件路由机制 - [[Centralized Logging]]:EventBridge 将事件路由到 CloudWatch Logs 进行集中存储 - [[Event-Driven Architecture]]:EventBridge 是 AWS 事件驱动架构的基础设施 - [[AWS]](entity):EventBridge 是 AWS 无服务器服务家族的重要成员 - [[Amazon CloudWatch Logs]]:EventBridge 将事件发送到 CloudWatch Logs ## Related Entities - [[AWS CloudFormation StackSets]]:EventBridge 监控的目标服务 - [[AWS Organizations]]:提供跨账户权限的基础设施 ## Sources - [[sources/how-to-simplify-multi-account-deployments-monitoring-centralized-logs-for-aws-cloudformation-stacksets.md]] - AWS EventBridge 官方文档