Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Being able to set "Created By" for a Sagemaker pipeline exectuion #3713

Closed
2 tasks
hossein-jazayeri opened this issue May 17, 2023 · 3 comments
Closed
2 tasks
Assignees
Labels
feature-request This issue requests a feature. sagemaker service-api This issue is caused by the service API, not the SDK implementation.

Comments

@hossein-jazayeri
Copy link

hossein-jazayeri commented May 17, 2023

Describe the feature

Right now the only way to set Created By field for a Sagemaker pipeline execution is through the Sagemaker studio console.
It would be very useful to be to set it through boto3 client as well!

Use Case

When a pipeline is triggered through boto3, we can't know who triggered the pipeline!

Proposed Solution

I can think of 2 scenarios: first, when an execution is started:

import boto3

boto3.client('sagemaker').start_pipeline_execution(
    PipelineName=..., 
    PipelineParameters=...
    CreatedBy= {
        'UserProfileArn': ..., 
    }
)

Or updating the existing execution:

import boto3

boto3.client('sagemaker').update_pipeline_execution(
    PipelineExecutionArn=..., 
    CreatedBy= {
        'UserProfileArn': ..., 
    }
)

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

1.26.25

Environment details (OS name and version, etc.)

Python/3.8.8 Linux/5.10.102.1-microsoft-standard-WSL2 exe/x86_64.ubuntu.20 prompt/off

@hossein-jazayeri hossein-jazayeri added feature-request This issue requests a feature. needs-triage This issue or PR still needs to be triaged. labels May 17, 2023
@tim-finnigan tim-finnigan self-assigned this May 17, 2023
@tim-finnigan
Copy link
Contributor

Hi @hossein-jazayeri thanks for reaching out. Can't you use the describe_pipeline_execution command to get this information? There is a CreatedBy value documented in the response syntax.

@tim-finnigan tim-finnigan added sagemaker response-requested Waiting on additional information or feedback. and removed needs-triage This issue or PR still needs to be triaged. labels May 17, 2023
@hossein-jazayeri
Copy link
Author

hossein-jazayeri commented May 18, 2023

Hi @tim-finnigan
describe_pipeline_execution returns the information, however, I'd like to set the value of CreatedBy!

@github-actions github-actions bot removed the response-requested Waiting on additional information or feedback. label May 18, 2023
@tim-finnigan tim-finnigan added the service-api This issue is caused by the service API, not the SDK implementation. label May 22, 2023
@tim-finnigan
Copy link
Contributor

Hi @hossein-jazayeri I see thanks for clarifying that. This would be a feature request for the Sagemaker team in that case, as they own the underlying StartPipelineExecution API which corresponds to the boto3 command. I created an issue in our shared SDK repository for this request, since the APIs are used across SDKs: aws/aws-sdk#540. I reached out to the Sagemaker team for feedback and will update that issue when I have more information. Please refer to that issue for updates going forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request This issue requests a feature. sagemaker service-api This issue is caused by the service API, not the SDK implementation.
Projects
None yet
Development

No branches or pull requests

2 participants