Skip to content

fix: Pass KMS value to create processing job #3843

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

Merged
merged 1 commit into from
May 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/sagemaker/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1566,6 +1566,7 @@ def _create_estimator(
sagemaker_session=self.sagemaker_session,
debugger_hook_config=False,
disable_profiler=True,
output_kms_key=self.output_kms_key,
)

def get_run_args(
Expand Down Expand Up @@ -1804,7 +1805,10 @@ def _pack_and_upload_code(
raise RuntimeError("S3 source_dir file must be named `sourcedir.tar.gz.`")

script = estimator.uploaded_code.script_name
s3_runproc_sh = self._create_and_upload_runproc(script, kms_key, entrypoint_s3_uri)
evaluated_kms_key = kms_key if kms_key else self.output_kms_key
s3_runproc_sh = self._create_and_upload_runproc(
script, evaluated_kms_key, entrypoint_s3_uri
)

return s3_runproc_sh, inputs, job_name

Expand Down