Medium
SageMaker
Regional
SageMaker models should use private registry in VPC for primary containers
Description
Flags SageMaker models whose PrimaryContainer pulls images via the public ECR endpoint rather than a private-VPC registry. Setting ImageConfig.RepositoryAccessMode='Vpc' forces image pulls to traverse the VPC endpoint and reuses VPC-level access controls.
Remediation
Recreate each affected model with PrimaryContainer.ImageConfig.RepositoryAccessMode='Vpc'.
Steps
- Identify the affected model via the SageMaker console.
- Create a new model (re-run create_model) with PrimaryContainer.ImageConfig.RepositoryAccessMode='Vpc' and a RepositoryAuthConfig if your registry is private.
- Update endpoints/training jobs to reference the new model.