0
0

Amplify gen1でデプロイイベントをEventBridgeで検知する

Last updated at Posted at 2024-08-12

結論

pattern.json
{
  "detail": {
    "appId": ["YOUR_APP_ID"],
    "branchName": ["YOUR_BRANCH_NAME"],
    "jobStatus": ["SUCCEED", "FAILED", "STARTED"]
  },
  "detail-type": ["Amplify Deployment Status Change"],
  "source": ["aws.amplify"]
}

"appId": ["YOUR_APP_ID"],
"branchName": ["YOUR_BRANCH_NAME"],を編集するだけです。

ソース

Amolifyのコンソールから通知を有効化します。

cap1.PNG

作成されたEventBridgeのルールを参考にすることでイベントパターンが確認できます。

cap2.PNG

おわりに

CloudTrailから探そうと思っていましたが、もっと簡単な方法がありました。
解決してよかったです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0