Automating PHD Notifications

0

A customer is trying to automate the PHD notifications using Health API. Here is a scenario they are trying to achieve.

Create a CW Event Rule for a Schedule Notification for all the Services.

They are able to do it for an individual service (EC2, RDS, DX etc) but not for all services as the Dropdown only allows to select one service. I advised them that they could use Custom Event pattern option instead of going for dropdown approach to do something like this. But they are asking if there is a way to test it. Is there a way to add dummy PHD notifications for test? If not, Is there a way we could solve this use case for the customer?

Here is the custom event pattern I suggested:

'{
  "source": [
"aws.health"
  ],
  "detail-type": [
    "AWS Health Event"
  ],
  "detail": {
    "eventTypeCategory": [
      "scheduledChange"
    ]
  }
}'
已提問 4 年前檢視次數 839 次
1 個回答
0
已接受的答案

You are right, you can use the DescribeEventTypes API to get detailed event types if you would like to apply a filter.

Done something similar with a customer though they decided to forward all AWS Health events to a central bus (and notifications from there) to make sure nothing gets "lost" and not having to maintain it execept for filtering out.

AWS
專家
Raphael
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南