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
344 stars 140 forks source link

How to get notification from event bus ARN #29

Closed adnanmansuri44 closed 2 months ago

adnanmansuri44 commented 2 years ago

HI, We want this notification in the email, where the only option to get it via SES or event bus ARN then SNS. SES required email verification and exchange policy to be allowed for delivery which is difficult

We want to explore event bus option. after the event is received on the event bus it should trigger to SNS, SQS or any other service which required event pattern to be created. What will be event pattern sample or parameter to get that all events to SNS or SQS from event bus? and it should be in json format. So is lambda sending events into json format?

Please assist

Adnan

gmridula commented 2 years ago

Thank you Adnan for your feedback. We are currently making changes on how the health events get pushed to eventbus. ETA for the beta release is two weeks from now. Stay tuned and we will keep you posted.

vaquarkhan commented 2 years ago

is above request completed ?

adnanmansuri44 commented 2 years ago

I didnt get chance to check updates. need to implement and test event bus format.

vaquarkhan commented 2 years ago

It just required boto3 call and ask sns arn in loud formation

adnanmansuri44 commented 2 years ago

i check latest cloud formation template. unable to find the parameter for sns arn. target is only till event bus arn. from bus to other services how to fetch it? @vaquarkhan

andrewcr7 commented 2 months ago

Clearing up an item here. An EventBridge bus is one of AHA's optional delivery channels. Once you have delivery to your EventBridge bus configured, then configure a rule on EventBridge with your SNS topic as the target.

You can select filtering for all events on that bus when configuring the rule. Or you can create custom patterns based on the event schema https://github.com/aws-samples/aws-health-aware/blob/main/new_aha_event_schema.md