aws-samples / aws-health-aware

AHA is an incident management & communication framework to provide real-time alert customers when there are active AWS event(s). For customers with AWS Organizations, customers can get aggregated active account level events of all the accounts in the Organization. Customers not using AWS Organizations still benefit alerting at the account level.
MIT No Attribution
348 stars 143 forks source link

Route messages to (Slack) channels based on account name (or number) & CDK? #54

Closed matherp-ppb closed 2 months ago

matherp-ppb commented 1 year ago

Just to ensure we aren't about to reinvent a wheel, is anyone aware of an existing method to direct different messages to different webhooks based on (ideally) account name?

We have a slack channel per account and we'd like to send messages accordingly. Slack have made mention that having one app across multiple channels is on their radar but without ETA.

In the meantime we found the slack Echo Bot which matches a keyword and will echo a message to another channel which is very handy, no code approach for our Ops team but it quotes the message rather than sending it a new which kind of messes up the formatting.

I had a look but no one has so far forked or submitted a PR for this have they? Also no one has plans to reproduce this in CDK have they? It's our go to so might see about the effort involved.

andrewcr7 commented 2 months ago

AHA supports a single routing/filtering configuration. If you have the EventBridge channel configured, some folks use EventBridge rules to further filter events and call different webhooks based on the services/events relevant to the team.

As an alternative, take a look at AWS User Notifications. You can have separate notification configurations for different combinations of events/services and the interested teams on your end. https://docs.aws.amazon.com/notifications/latest/userguide/managing-notifications.html

We've had a few inquiries about CDK (https://github.com/aws-samples/aws-health-aware/issues/67, https://github.com/aws-samples/aws-health-aware/issues/13). It's not on our roadmap for AHA.