AWS sagemaker documentation change
Summary
Removed legacy SageMaker Python SDK v2 code example for script processing
Security assessment
Changes involve removing an outdated implementation example. No security-related content was added or modified, and there's no evidence of security vulnerability fixes in the processing container documentation.
Diff
diff --git a/sagemaker/latest/dg/processing-container-run-scripts.md b/sagemaker/latest/dg/processing-container-run-scripts.md index c0ff5e8d3..1f4f8bc54 100644 --- a//sagemaker/latest/dg/processing-container-run-scripts.md +++ b//sagemaker/latest/dg/processing-container-run-scripts.md @@ -47,3 +46,0 @@ Before using the following examples, you need to have your own input data and a -SageMaker Python SDK v3 - - @@ -95,19 +91,0 @@ SageMaker Python SDK v3 -SageMaker Python SDK v2 (Legacy) - - - from sagemaker.processing import ScriptProcessor, ProcessingInput, ProcessingOutput - - script_processor = ScriptProcessor(command=['python3'], - image_uri='image_uri', - role='role_arn', - instance_count=1, - instance_type='ml.m5.xlarge') - - script_processor.run(code='preprocessing.py', - inputs=[ProcessingInput( - source='s3://path/to/my/input-data.csv', - destination='/opt/ml/processing/input')], - outputs=[ProcessingOutput(source='/opt/ml/processing/output/train'), - ProcessingOutput(source='/opt/ml/processing/output/validation'), - ProcessingOutput(source='/opt/ml/processing/output/test')]) -