File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
model_server/multi_model_server Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ def prepare(
110
110
model_path = model_path ,
111
111
sagemaker_session = sagemaker_session ,
112
112
s3_model_data_url = s3_model_data_url ,
113
+ secret_key = secret_key ,
113
114
image = image ,
114
115
)
115
116
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ class SageMakerMultiModelServer:
92
92
def _upload_server_artifacts (
93
93
self ,
94
94
model_path : str ,
95
+ secret_key : str ,
95
96
sagemaker_session : Session ,
96
97
s3_model_data_url : str = None ,
97
98
image : str = None ,
@@ -132,6 +133,7 @@ def _upload_server_artifacts(
132
133
env_vars = {
133
134
"SAGEMAKER_SUBMIT_DIRECTORY" : "/opt/ml/model/code" ,
134
135
"SAGEMAKER_PROGRAM" : "inference.py" ,
136
+ "SAGEMAKER_SERVE_SECRET_KEY" : secret_key ,
135
137
"SAGEMAKER_REGION" : sagemaker_session .boto_region_name ,
136
138
"SAGEMAKER_CONTAINER_LOG_LEVEL" : "10" ,
137
139
"LOCAL_PYTHON" : platform .python_version (),
You can’t perform that action at this time.
0 commit comments