以下の内容はhttps://yohei-a.hatenablog.jp/entry/20260317/1773754994より取得しました。


Redshift のイベントをメール通知する設定手順

Redshift の特定のイベントをメール通知する設定手順。
Redshift のイベントサブスクリプションから SNS トピックで E メールに通知する設定例。
SNS トピックを作成して通知先メールアドレスを設定後に、Redshift のイベントサブスクリプションを作成して、SNS トピックを指定する。
SNS トピックのサブスクリプションフィルターポリシーで通知するイベントをホワイトリスト or ブラックリスト方式で設定する。

設定手順

SNS トピック作成
  • Amazon SNS > トピック > トピックの作成
    • タイプ:スタンダード
    • 名前:Redshift-Error-Event-SNS-Topic

  • サブスクリプションの作成
    • プロトコル:Eメール
    • エンドポイント:通知先メールアドレス
    • サブスクリプションフィルターポリシー: On
      • フィルターポリシーのスコープ: メッセージ本文
      • JSON エディタ: 通知するイベントを指定する(以下はブラックリスト方式で記述したイベントを通知する設定)
{
  "About this Event": [
    "http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html#REDSHIFT-EVENT-3013 ",
    "http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html#REDSHIFT-EVENT-3500 ",
    "http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html#REDSHIFT-EVENT-3533 ",
    "http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html#REDSHIFT-EVENT-3686 "
  ]
}

  • Subject が "AWS Notification - Subscription Confirmation" のメールが届くので、 "Confirm subscription" をクリックする。
You have chosen to subscribe to the topic:
arn:aws:sns:ap-northeast-1:542203247656:Redshift-Error-Event-SNS-Topic

To confirm this subscription, click or visit the link below (If this was in error no action is necessary):
Confirm subscription

Please do not reply directly to this email. If you wish to remove yourself from receiving all future SNS subscription confirmation requests please send an email to sns-opt-out



Redshift イベントサブスクリプション作成
  • [Amazon Redshift]-[イベント]-[イベントサブスクリプションを作成]
    • イベントサブスクリプション名: Redshift-Error-Event-Subscription
    • ソースタイプ: すべて
    • カテゴリ: 全て選択(管理、モニタリング、セキュリティ、設定、保留中)
    • 重要度: エラー
  • サブスクリプションアクション
    • SNS トピックを通知: Redshift-Error-Event-SNS-Topic
    • サブスクリプションのアクティブ化: 有効化

補足

  • サブスクリプションフィルターポリシーでホワイトリスト方式で指定したイベント以外を通知したい場合は以下の通り設定する。
{
  "About this Event": [
    {
      "anything-but": [
        "http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html#REDSHIFT-EVENT-3013 ",
        "http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html#REDSHIFT-EVENT-3500 ",
        "http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html#REDSHIFT-EVENT-3533 ",
        "http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html#REDSHIFT-EVENT-3686 "
      ]
    }
  ]
}
{
  "About this Event": [
    {
      "anything-but": {
        "wildcard": "*REDSHIFT-EVENT-3013*"
      }
    }
  ]
}
{
  "About this Event": [
    {
      "anything-but": {
        "wildcard": "*REDSHIFT-EVENT-3013*"
      }
    },
    {
      "anything-but": {
        "wildcard": "*REDSHIFT-EVENT-3500*"
      }
    },
    {
      "anything-but": {
        "wildcard": "*REDSHIFT-EVENT-3533*"
      }
    },
    {
      "anything-but": {
        "wildcard": "*REDSHIFT-EVENT-3686*"
      }
    }
  ]
}



以上の内容はhttps://yohei-a.hatenablog.jp/entry/20260317/1773754994より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14