aws-health-aware
aws-health-aware copied to clipboard
Move to EventBridge notifications
AHA currently uses AWS Health API polling to get event notifications. Instead, AHA could use EventBridge notifications to respond to AWS Health events. This would be more efficient than polling every minute.
AHA currently uses AWS Health API polling to get event notifications. Instead, AHA could use EventBridge notifications to respond to AWS Health events. This would be more efficient than polling every minute.
A push based mechanism is certainly always easier than a pull based one. Correct me if I'm wrong but it seems that it won't work if the Organizations View feature is enabled, because eventbridge will capture the account event and not all the aggregated events for all the accounts. So the actual solution is generic and works in both cases.
That's true @Saff-Buraq-Dev , but EventBridge would be preferred for non-organization view use cases.
I think the current mechanism is preferred because EventBridge events are best effort rather than guaranteed delivery? Happy to be corrected.
Confirming, the use of Health API to poll for events was to take advantage of Org View, which at the time was not available on EventBridge (and AHA allows emitting events to a consolidated EventBridge bus for the org). We don't have a roadmap item to re-architect AHA to use EventBridge as the source.
Related, AWS Health launched Organizational View on EventBridge as a discrete feature. This does not require AHA. https://aws.amazon.com/about-aws/whats-new/2023/10/aws-health-aggregates-events-organization-eventbridge/