Sub topic 12
Routing across accounts and regions
This chapter assumes you can write event patterns, create rules, and attach targets with the AWS CLI. It also assumes you know how IAM roles and resource policies differ. Everything here builds on one idea: an event bus can be the target of a rule. Cross-account and cross-region routing are both rules that target a bus somewhere else.
Why forward events
Common reasons to move events between accounts or regions:
- Central collection. Each team's account publishes to its own bus, and a shared platform account receives a filtered copy for auditing or analytics.
- Account boundaries. Producers and consumers live in separate accounts, such as one per team or per environment, and still need to communicate.
- Regional proximity or resilience. Events from one region are copied to another so consumers there can react, or so a standby region has the same data.
The sender always owns the forwarding rule. The receiver decides whether to accept the events.
The forwarding model
In the sending account, you create a rule whose target is the ARN of a bus in another account or region. EventBridge puts the matching event onto that bus with PutEvents. The receiving bus then evaluates its own rules against the event as if it had been published there.
Two permission checks apply:
- The sender's execution role must be allowed to call
events:PutEventson the destination bus ARN. EventBridge assumes this role when it forwards. - For a different account, the destination bus's resource policy must allow the sender. For the same account in a different region, the role alone is enough, because IAM evaluates one account.
Step 1: allow the sender on the receiving bus
In account B (222222222222), attach a resource policy to the bus. For a single sender account, name that account as the principal:
aws events put-permission \
--event-bus-name orders-bus \
--action events:PutEvents \
--principal 111111111111 \
--statement-id allow-account-a \
--region us-west-2For many accounts, allow everyone in your AWS Organization with a condition. Write the policy to a file:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowOrgPutEvents",
"Effect": "Allow",
"Principal": "*",
"Action": "events:PutEvents",
"Resource": "arn:aws:events:us-west-2:222222222222:event-bus/orders-bus",
"Condition": {
"StringEquals": { "aws:PrincipalOrgID": "o-exampleorgid" }
}
}
]
}Apply it with put-permission, which replaces the whole bus policy:
aws events put-permission \
--event-bus-name orders-bus \
--policy file://bus-policy.json \
--region us-west-2Principal: "*" is only safe because of the aws:PrincipalOrgID condition. Without a condition, any AWS account could send events to your bus.
Step 2: create the sender's execution role
In account A (111111111111), create a role that EventBridge can assume. The trust policy names the EventBridge service principal:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": { "Service": "events.amazonaws.com" },
"Action": "sts:AssumeRole"
}
]
}The permissions policy grants PutEvents on exactly the destination bus:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "events:PutEvents",
"Resource": "arn:aws:events:us-west-2:222222222222:event-bus/orders-bus"
}
]
}Create both with the CLI:
aws iam create-role \
--role-name eventbridge-forward-role \
--assume-role-policy-document file://trust.json
aws iam put-role-policy \
--role-name eventbridge-forward-role \
--policy-name put-events-to-b \
--policy-document file://permissions.jsonStep 3: create the forwarding rule and target
Create the rule in account A as usual, then attach the remote bus as a target. The target needs RoleArn. Retry and dead-letter settings work the same as for any other target:
[
{
"Id": "to-account-b",
"Arn": "arn:aws:events:us-west-2:222222222222:event-bus/orders-bus",
"RoleArn": "arn:aws:iam::111111111111:role/eventbridge-forward-role",
"RetryPolicy": {
"MaximumRetryAttempts": 5,
"MaximumEventAgeInSeconds": 3600
},
"DeadLetterConfig": {
"Arn": "arn:aws:sqs:us-east-1:111111111111:forward-dlq"
}
}
]aws events put-rule \
--name forward-high-value-orders \
--event-bus-name orders-bus \
--event-pattern file://pattern.json \
--region us-east-1
aws events put-targets \
--rule forward-high-value-orders \
--event-bus-name orders-bus \
--targets file://targets.json \
--region us-east-1The dead-letter queue lives in the sender's account and region. That is where you look when forwarding fails.
Step 4: add rules on the receiving bus
Forwarding only moves the event. Nothing happens until a rule on the receiving bus matches it. Create that rule in account B. A forwarded event keeps the account and region of its origin, so you can filter on the producer:
{
"source": ["com.example.orders"],
"account": ["111111111111"],
"region": ["us-east-1"],
"detail-type": ["OrderPlaced"]
}This is useful when several accounts forward the same event type to one bus. The account field comes from the envelope that EventBridge sets. A producer cannot forge it through Detail.
Same-account cross-region forwarding
The mechanics are identical, with two differences. You do not need a bus resource policy, because the role and bus share an account. The target ARN carries the other region:
arn:aws:events:eu-west-1:111111111111:event-bus/orders-busRegions are separate. The destination bus, and any rules and targets behind it, must exist in the destination region. A rule's targets in the destination region can also be Lambda functions or queues in that region, which avoids cross-region calls from the sender.
Failure modes and gotchas
| Symptom | Likely cause | Where to look |
|---|---|---|
| `FailedInvocations` rises on the forwarding rule | The role lacks `PutEvents` on the destination, or the bus policy does not allow the sender | Sender's CloudWatch metrics and DLQ |
| Events arrive but nothing downstream runs | No rule on the receiving bus matches | Receiving bus rules; test with a catch-all rule |
| Pattern with `account` never matches | The value is the origin account, not the receiving account | Event envelope in a logged copy |
| `put-permission` removed other access | It replaced the full policy | Re-apply a complete policy file |
| Duplicate processing | Forwarding is at-least-once, and retries can repeat events | Make consumers idempotent on `id` or a business key |
Several points need care:
- Loops. If bus A forwards to bus B and B forwards back to A without a narrowing pattern, events can circulate. Filter on
accountorregion, or use a custom field, so a forwarded event never matches the rule that forwards it. Also check the current EventBridge documentation for limits on chaining forwards through more than one bus. - Silent failure. A successful
PutEventscall on the producer only means the first bus accepted the event. Delivery to the remote bus happens later and is reported through the rule's metrics. - Policy scope. Prefer naming specific accounts or an organization over broad principals. Keep the role's
Resourcelimited to one bus ARN. - Cost and latency. Cross-region forwarding adds latency and may add data transfer and per-event charges. Forward the narrowest pattern you need, and use an input transformer only if the remote consumers expect a reduced shape.
For active-active failover across two regions, EventBridge also offers global endpoints, which route publishing between a primary and secondary region based on health. They require a bus with the same name in both regions, and they are a separate feature from rule-based forwarding.
Verify the path
Send a test event from account A and check each hop:
aws events put-events --region us-east-1 --entries '[{"Source":"com.example.orders","DetailType":"OrderPlaced","Detail":"{\"orderId\":\"2001\",\"amount\":500,\"status\":\"new\"}","EventBusName":"orders-bus"}]'aws cloudwatch get-metric-statistics \
--namespace AWS/Events \
--metric-name FailedInvocations \
--dimensions Name=RuleName,Value=forward-high-value-orders \
--start-time 2026-11-26T18:00:00Z \
--end-time 2026-11-26T19:00:00Z \
--period 300 \
--statistics Sum \
--region us-east-1On the receiving side, a temporary catch-all rule that targets a CloudWatch Logs group shows exactly what arrived, including the original account and region fields.
Exercise
Account 111111111111 forwards events to a bus in account 222222222222, and the rule shows rising FailedInvocations. The sender's role allows events:PutEvents on the destination bus ARN. What else must you check, and where?
Show answer
Check the resource policy on the destination bus in account 222222222222. It must allow events:PutEvents from account 111111111111, or from the organization through an aws:PrincipalOrgID condition. For a different account, the role alone is not enough. Also confirm the role's trust policy names events.amazonaws.com, and look at the DLQ in the sender's account for the failed events.
Exercise
A receiving bus has many accounts forwarding OrderPlaced events. You want a rule that handles only events produced in account 333333333333. Which pattern field do you use, and why can you trust it?
Show answer
Use the top-level "account" field, for example "account": ["333333333333"]. EventBridge sets it in the envelope to the account where the event originated, and the producer cannot override it through the Detail payload.