Can i trigger an AWS lambda function when a sagemaker labeling job is completed using CloudWatch events?

0

I'm new using CloudWatch events and I'm trying to create an event rule that triggers a lambda function when a Sagemaker Ground Truth Labeling Job is completed. It seems to me that this is possible, from reading this articles from aws:

React to Amazon SageMaker Job Status Changes with CloudWatch Events

Creating a CloudWatch Events Rule That Triggers on an Event

I followed the tutorial to create a cloudwatch event rule and set the event pattern to Sagemaker:Sagemaker Training Job State Change and created a Lambda Function and added it in Targets. But when i create a labeling job i don't see any output coming from the lambda function in the logs, neither when the job status changes to Completed, Failed or Stopped.

I've also tried setting the event pattern to Sagemaker:All Events, but this didn't work either.

I'm checking the metrics for the rule and it seems like it hasn't recorded any event.

If someone has done something similar to this in the past, any suggestion or recommendation will be very appreciated. Thanks

José R. Sánchez

Posted 2019-08-01T22:43:31.377

Reputation: 1

No answers