aws-samples / aws-cdk-examples

Example projects using the AWS CDK
Apache License 2.0
4.95k stars 2.1k forks source link

Add Example for Cross Account EventBridge in Organizations #1023

Closed samtwil closed 2 months ago

samtwil commented 2 months ago

Describe the feature

This AWS CDK sample illustrates how to implement an Event Driven Architecture with Amazon EventBridge that involves multiple accounts in an AWS Organization.

Use Case

EventBridge is a key AWS Service in Event Driven Architectures, it allows separation between producers of messages and consumers of those messages. In a single account this is straight forward, but in a modern multi account structure some additional considerations are required in order to allow for events on the Event Bus in one account to be consumed from the Event Bus in another account.

Proposed Solution

architecture_diagram

  1. The Producer Lambda function in Account A puts an event on the EventBridge Bus.
  2. The cross-account EventBridge Rule routes the event to an EventBridge Bus in Account B.
  3. The EventBridge Bus in Account B has a Rule target which invokes the Consumer Lambda function.

Other Information

No response

Acknowledgements

Language

Python

github-actions[bot] commented 2 months ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.