-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: add kms_key optional arg to Pipeline.deploy() #1962
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
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
src/sagemaker/pipeline.py
Outdated
@@ -156,6 +157,9 @@ def deploy( | |||
data_capture_config (sagemaker.model_monitor.DataCaptureConfig): Specifies | |||
configuration related to Endpoint data capture for use with | |||
Amazon SageMaker Model Monitoring. Default: None. | |||
kms_key (str): The ARN of the KMS key that is used to encrypt the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can actually be the arn, key id or alias - https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_OutputDataConfig.html
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
…r-python-sdk into pipeline-encryption
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
* fix: propagate kms_key to Pipeline.deploy() * fix kms_key docstring Co-authored-by: Chuyang Deng <[email protected]> Co-authored-by: icywang86rui <[email protected]>
Issue #, if available:
Pipeline.deploy()
does not acceptkms_key
to encrypt data attached to hosting endpoint.Description of changes:
Add
kms_key
as an optional arg toPipeline.deploy()
and propagate tosagemaker_session.endpoint_from_production_variants
Testing done:
tox -e py38 -- tests/unit
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.General
Tests
unique_name_from_base
to create resource names in integ tests (if appropriate)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.