Home > Software design >  How do you make one AWS sagemaker pipeline trigger another one?
How do you make one AWS sagemaker pipeline trigger another one?

Time:11-16

I know you can trigger sagemaker pipelines with all kind of events. Can you also trigger sagemaker pipelines when another pipeline finishes it's execution?

CodePudding user response:

You can use any EventbridgeEvent to trigger a pipeline step. Since Eventbridge supports Sagemaker Pipeline Status Change as an event, you should be able to trigger a pipeline by another one.

CodePudding user response:

Yes, use a Cloudwatch Event Rule (or EventBridge), such as

{
  "source": [
    "aws.sagemaker"
  ],
  "detail-type": [
    "SageMaker Model Building Pipeline Execution Status Change"
  ],
  "detail": {
    "currentPipelineExecutionStatus": [
      "Succeeded"
    ]
  }
}

Then call the next pipeline using either a Lambda target or perhaps a CodeBuild target, depending on how you want to launch your pipeline

  • Related