
Share one Amazon EventBridge custom event bus across accounts with AWS RAM. A consumer account subscribes and delivers events to an AWS Lambda function.
git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/eventbridge-custom-bus-cross-account/python/samOwner account: sam deploy --stack-name xacct-bus-owner --resolve-s3 --parameter-overrides Role=Owner SharePrincipal=<CONSUMER_ACCOUNT_ID>Consumer account: sam deploy --stack-name xacct-bus-consumer --resolve-s3 --capabilities CAPABILITY_IAM --parameter-overrides Role=Consumer SharedBusArn=<BUS_ARN>sam delete in each account.