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"]
  }
}
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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인