Skip to content

Commit cd5974a

Browse files
navinsoninavinns
authored andcommitted
fix: Add encryption setting to tar_and_upload_dir method (aws#3082)
Co-authored-by: Navin Soni <[email protected]>
1 parent 1ddded9 commit cd5974a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/sagemaker/estimator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
import json
1717
import logging
1818
import os
19-
from typing import Any, Dict
2019
import uuid
2120
from abc import ABCMeta, abstractmethod
21+
from typing import Any, Dict
2222

2323
from six import string_types, with_metaclass
2424
from six.moves.urllib.parse import urlparse
@@ -721,6 +721,7 @@ def _stage_user_code_in_s3(self) -> str:
721721
dependencies=self.dependencies,
722722
kms_key=kms_key,
723723
s3_resource=self.sagemaker_session.s3_resource,
724+
settings=self.sagemaker_session.settings,
724725
)
725726

726727
def _prepare_rules(self):

src/sagemaker/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ def _upload_code(self, key_prefix: str, repack: bool = False) -> None:
447447
script=self.entry_point,
448448
directory=self.source_dir,
449449
dependencies=self.dependencies,
450+
settings=self.sagemaker_session.settings,
450451
)
451452

452453
if repack and self.model_data is not None and self.entry_point is not None:

0 commit comments

Comments
 (0)