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"]
  }
}
preguntada hace 3 meses146 visualizaciones
1 Respuesta
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*]

respondido hace 3 meses
  • @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

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas