Area: Deployment Issues
Sub-Area: AWS EventBridge Integration
Issue
An Amazon EventBridge event bus that receives change events from a DataHub Cloud instance suddenly stops receiving events. Before the stop, events arrived at a steady rate. Neither the DataHub instance's configuration or deployment nor the bus owner's setup was changed. The DataHub instance keeps trying to publish every event, but AWS rejects each PutEvents call with an explicit deny from a resource control policy (RCP) set in AWS Organizations. An RCP is not set on the bus itself, so the team that owns the bus may see no change. The instance does not retry or queue rejected events, so events sent while the deny was in effect are not replayed.
Error Messages
software.amazon.awssdk.services.eventbridge.model.AccessDeniedException: User: arn:aws:sts::<datahub-account-id>:assumed-role/<datahub-app-role>/aws-sdk-java-<id> is not authorized to perform: events:PutEvents on resource: arn:aws:events:<region>:<customer-account-id>:event-bus/<bus-name> with an explicit deny in a resource control policy (Service: EventBridge, Status Code: 400, Request ID: <request-id>) (SDK Attempt Count: 1)Caught exception while attempting to sink change event to sink class com.linkedin.metadata.event.change.aws.AwsEventBridgeChangeEventSink.
You Might Be Asking
- Why did my EventBridge bus stop receiving events from DataHub when nothing changed on our side?
- How do I tell whether DataHub or my AWS organization is blocking event delivery?
- What is a resource control policy, and where is it configured?
- Will events published during the outage be replayed?
Solution
- Confirm the failure in the DataHub logs. Ask DataHub Support to check the logs of the instance. The EventBridge sink (
AwsEventBridgeChangeEventSink, run throughEntityChangeEventSinkManager) writes any send error to the log. AnAccessDeniedExceptionthat mentions "an explicit deny in a resource control policy" means AWS is rejecting each PutEvents call because of a policy set in AWS Organizations. Compare the time of the first rejection and the time events stopped arriving on the bus. - Find the policy change in AWS CloudTrail. A resource control policy is set in AWS Organizations and can be attached to the account that owns the bus, to its organizational unit (OU), or to the organization root. Your organization administrators should look in CloudTrail for the policy change around the time of the first rejection. The request IDs in the DataHub error messages should match entries in CloudTrail.
- Update the resource control policy. Have your organization administrators change the RCP so that it allows
events:PutEventson the bus from the AWS account that DataHub publishes from. This is the account ID shown in theassumed-roleARN in the error message. If you can share the conditions on the deny statement, DataHub Support can check whether anything about DataHub's requests trips them. - Verify recovery. Once access is restored, new events flow again without any action on the DataHub side. Ask DataHub Support to confirm in the logs that the last rejected call is behind you and that no further rejections or other EventBridge errors appear. Also confirm that events arrive on the bus again.
- Plan for the lost events. Events published between the first rejection and the fix are dropped. DataHub does not retry, queue, or replay them. Any downstream system that needs that data must catch up from DataHub directly.
Additional Notes
- Because a resource control policy is set in AWS Organizations rather than on the bus, the team that owns the event bus may see no change on the bus. A policy change made elsewhere in the organization can silently block delivery.
- If you publish from several DataHub environments (for example dev, stage and prod) to buses in different AWS accounts, the same policy applied later to another target account will need the same exception for the DataHub publishing account.
- In the resolved case, the DataHub instance's configuration and deployment were unchanged, and the logs showed every publish attempt being rejected by AWS. The customer's platform team confirmed it had introduced a new RCP that blocked the events.
Related Documentation
- None
Tags: eventbridge, aws, accessdeniedexception, resource-control-policy, rcp, aws-organizations, putevents, cloudtrail, datahub-cloud, event-delivery