In code that is running inside a processing step I would like to find details about pipeline execution that the step is part of.
From the step (processing step) I have access to:
- Job name
- Job ARN
How to find pipeline execution (or it's ARN) based on that?
I explored following things:
One can using boto3 SageMaker client:
- List all pipelines
- For each pipeline list all executions
- For each execution list all steps
- Filter the steps to find the execution However, I think there should be a better way?
I tried to explore Lineage API, but it seems that you can't use job ARN as a starting ARN.