'Is there a way to list all resources/components (Models, endpoints, TrainingJobs, etc) associated with a AWS SageMaker Notebook/ Studio Project?

If I write a script to train and deploy a machine learning model on AWS SageMaker notebook or create a Project using AWS SageMaker Studio, when I try to list all the resources used, using boto3, the information extracted has no pattern linking the resource information to the notebook/project.

boto3.client('sagemaker').list_models()

The boto3 api returns all resource information associated with my account and region. Is there a way to link these info (Models, endpoints, TrainingJobs, ProcessingJobs etc) to the Sagemaker Notebook/ Studio Project they were created in?



Solution 1:[1]

When using SageMaker Projects in SageMaker Studio, one of the advantages you get is all the child resources of that Project - models, endpoints, pipelines are tagged with the project-id. You can use SageMaker's search API with a tag filter to list all resources in SageMaker that are tagged with your project id.

Solution 2:[2]

I found the answer. Here it is: Right click on project node and select project properties. Select Run/Debug/Profile and edit the "Default" run configuration. Select "Tool Settings" and enable "Allow Program Input"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kirit Thadaka
Solution 2 MichaelG