By using AWS re:Post, you agree to the Terms of Use

how to trigger sagemaker pipeline via code change in github?


based on the aws docs and sample code provided here,, I can wrap different ML steps like training into a step , in a sagemaker pipeline code. after that, i can define sagemaker projects to create a CI/CD pipeline to build and deploy models. the examples i saw builds/deploy model in aws code commit/pipeline. is it possible to move this part to github or gitlab for repository and then deploy from gitlab or other tools like jenkins. are there any examples or code samples to do this?? also, instead of working in sagemaker studio IDE, is it possible to set up code repo in github or gitlab and we use our own IDE to push changes to the pipeline or sagemkaer projects code to build/deploy model? and somehow hook that into studio such that for example , we make a change to hyperparameter value in gitlab, that will trigger the pipeline in studio?

1 Answer

You can create SageMaker projects using third party source code repositories such as Gitlab, Github etc. Here's a blog that walks through a solution - If you did not want to use Projects, you can still use pipelines with your source code. You can create an Amazon EventBridge rule to trigger a SageMaker pipeline execution based on events or a given schedule. See an example here -

answered 23 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions