sagemaker-python-sdk icon indicating copy to clipboard operation
sagemaker-python-sdk copied to clipboard

SageMaker Pipelines: AWS Lambda integration

Open elvinx opened this issue 5 years ago • 4 comments

Describe the feature you'd like I would like to be able to define AWS Lambda as a step in my SageMaker workflows.

How would this feature be used? Please describe. This will allow us to integrate 3rd party services/APIs to our ML workflows.

Describe alternatives you've considered Using Step Functions

elvinx avatar Dec 14 '20 15:12 elvinx

Hi there, thanks for your interests in SageMaker Pipelines. Your feedback is very important to us.

Can I ask how long your "3rd party services/APIs" will take to execute as a pipeline step? Do you expect them to finish within Lambda's 15 min runtime limit?

wangweixun avatar Mar 04 '21 02:03 wangweixun

Hi @wangweixun sometimes it might take longer than that for asynchronous jobs. We solve this with Step Functions by creating trigger, wait, check type of loops.

elvinx avatar Mar 04 '21 14:03 elvinx

@elvinx - we launched support for a custom callback step. Using this, you can define a step to trigger a lambda function or any other AWS service you want.

https://docs.aws.amazon.com/sagemaker/latest/dg/build-and-manage-steps.html#step-type-callback

kirit93 avatar Jun 10 '21 14:06 kirit93

lambda step is supported now, check this out

https://docs.aws.amazon.com/sagemaker/latest/dg/build-and-manage-steps.html#step-type-lambda

@elvinx

jerrypeng7773 avatar Jan 12 '22 01:01 jerrypeng7773