英文:
how to create sagemaker pipeline definition file via aws cli?
问题
可以通过AWS CLI创建SageMaker管道定义文件吗?根据这里的文档,https://github.com/aws/amazon-sagemaker-examples/blob/main/sagemaker-pipelines/tabular/abalone_build_train_deploy/sagemaker-pipelines-preprocess-train-evaluate-batch-transform.ipynb,可以通过Jupyter笔记本创建管道步骤,然后创建管道对象,并通过Jupyter笔记本执行它。实际上,所有步骤都记录在一个JSON文件中。我可以简单地在本地或通过CLI创建该JSON文件,然后在本地机器上使用AWS CLI执行它吗,例如
aws sagemaker update-pipeline --pipeline-name $PIPELINE_NAME --role-arn $ROLE_ARN --pipeline-definition "$pipeline_definition_json"
英文:
is it possible to create a sagemaker pipeline definition file via aws cli? based on the docs here, https://github.com/aws/amazon-sagemaker-examples/blob/main/sagemaker-pipelines/tabular/abalone_build_train_deploy/sagemaker-pipelines-preprocess-train-evaluate-batch-transform.ipynb
one can create pipeline steps via jupyter notebook and create a pipeline object and then execute it via jupyter notebook. essentially, all the steps are documented in some json file. can i simply create that json file locally or via cli and then execute it via aws cli from my local machine , for example
aws sagemaker update-pipeline --pipeline-name $PIPELINE_NAME --role-arn $ROLE_ARN --pipeline-definition "$pipeline_definition_json"
答案1
得分: 1
你可以使用Sagemaker SDK定义流水线及其步骤。一旦完成此操作,您可以导出JSON(pipeline.definition()),然后稍后使用CLI创建或更新。
英文:
You can define the pipeline and its steps using the Sagemaker SDK. Once you have this you can export the JSON (pipeline.definition()) and later use it with the cli to create or update.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论