https://github.com/zeeshanhanif/aws-cross-account-eventbridge
This repo is for sample application to implement cross account communication on event bridge
https://github.com/zeeshanhanif/aws-cross-account-eventbridge
aws aws-cdk aws-cdk-constructs aws-cloudformation aws-eventbridge aws-lambda aws-sdk cross-account-communication event-bridge
Last synced: about 1 month ago
JSON representation
This repo is for sample application to implement cross account communication on event bridge
- Host: GitHub
- URL: https://github.com/zeeshanhanif/aws-cross-account-eventbridge
- Owner: zeeshanhanif
- Created: 2021-02-16T14:37:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-18T09:43:05.000Z (over 4 years ago)
- Last Synced: 2025-04-11T02:09:03.613Z (about 1 month ago)
- Topics: aws, aws-cdk, aws-cdk-constructs, aws-cloudformation, aws-eventbridge, aws-lambda, aws-sdk, cross-account-communication, event-bridge
- Language: TypeScript
- Homepage:
- Size: 159 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS Cross Account access with AWS EventBridge
This repo is for sample application to implement cross account communication on event bridgeTo send event from one aws account to another we need to follow specific steps
There are two folders
1. source-account-code -- This contains cdk code that will be provisioned in account that will send event
2. target-account-code -- This contains cdk code that will be provisioned in account that will receive event## Important to read
https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.htmlhttps://aws.amazon.com/blogs/compute/simplifying-cross-account-access-with-amazon-eventbridge-resource-policies/
## EventBus Target -- In Source Account Code
EventBus Target is still not part of AWS CDK so I have used from one of its pull request which will be part of AWS CDK in future, after that we will not require to use this codehttps://github.com/aws/aws-cdk/pull/12926
## Resource Based Policy -- In Target Account
Need to add Resource Based Policy on Event bus of Target Accounthttps://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html
https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html