How to trigger an event bridge rule for sagemaker training job when failed?

0

I create training job via script and the name for each training job is assigned by sagemaker in this patter , 'somehash-mysagemakerpipeline-2024...'

I created an event bridge rule to capture training job that fails, but I want to narrow it down to training job with specific names , in this case names that contains '...mysagemakerpipeline ...' everything else in that training job name is auto assign.

how can i achieve this?

{
  "source": ["aws.sagemaker"],
  "detail-type": ["SageMaker Training Job State Change"],
  "detail": {
    "ProcessingJobStatus": ["Failed"]
  }
}
已提問 3 個月前檢視次數 148 次
1 個回答
0

If you have the failure event message, then use that to identify which key pair has the resource name and use that key to filter based on the arn

[arn:aws:sagemaker:us-east-1:123456789012:training-job/*mysagemakerpipeline*]

已回答 3 個月前
  • @Landerson - thanks. I'm sending the event notification to a sns topic, not sure where should i put the filter or filtering logic

  • The filter should be added in the event bridge rule... Let me see if I can find some example snippet

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

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

回答問題指南