This repo is for sample application to implement cross account communication on event bridge
To send event from one aws account to another we need to follow specific steps
There are two folders
- source-account-code -- This contains cdk code that will be provisioned in account that will send event
- target-account-code -- This contains cdk code that will be provisioned in account that will receive event
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 code
Need to add Resource Based Policy on Event bus of Target Account
https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html