AWS Security ChangesHomeSearch

AWS sagemaker documentation change

Service: sagemaker · 2026-07-01 · Documentation low

File: sagemaker/latest/dg/prebuilt-containers-extend.md

Summary

Removed legacy SageMaker Python SDK v2 code examples for container extension documentation

Security assessment

The diff shows deletion of deprecated SDK usage examples without any security context. No container security features, vulnerability mitigations, or security best practices were added or modified.

Diff

diff --git a/sagemaker/latest/dg/prebuilt-containers-extend.md b/sagemaker/latest/dg/prebuilt-containers-extend.md
index 1cef300b3..44e9cbb9b 100644
--- a//sagemaker/latest/dg/prebuilt-containers-extend.md
+++ b//sagemaker/latest/dg/prebuilt-containers-extend.md
@@ -366,3 +365,0 @@ Remember that `docker` looks for a file specifically called `Dockerfile` without
-SageMaker Python SDK v3
-    
-    
@@ -383,17 +379,0 @@ SageMaker Python SDK v3
-SageMaker Python SDK v2 (Legacy)
-    
-    
-        from sagemaker.estimator import Estimator
-    
-    hyperparameters={'epochs': 1}
-    
-    estimator=Estimator(
-        image_uri='pytorch-extended-container-test',
-        role=role,
-        instance_count=1,
-        instance_type='local',
-        hyperparameters=hyperparameters
-    )
-    
-    estimator.fit('file:///tmp/pytorch-example/cifar-10-data')
-
@@ -463,3 +442,0 @@ If you want to use this training container with SageMaker Studio to use its visu
-SageMaker Python SDK v3
-    
-    
@@ -482,22 +458,0 @@ SageMaker Python SDK v3
-SageMaker Python SDK v2 (Legacy)
-    
-    
-        import sagemaker
-    
-    from sagemaker import get_execution_role
-    from sagemaker.estimator import Estimator
-    
-    estimator=Estimator(
-        image_uri=ecr_image,
-        role=get_execution_role(),
-        base_job_name='pytorch-extended-container-test',
-        instance_count=1,
-        instance_type='ml.p2.xlarge'
-    )
-    
-    # start training
-    estimator.fit()
-    
-    # deploy the trained model
-    predictor=estimator.deploy(1, instance_type)
-