Skill 3.2.3

Build and maintain containers for ML and AI workloads

Key Concepts

Start from AWS Deep Learning Containers or SageMaker framework images and extend them with a Dockerfile, rather than building from scratch. Build in CodeBuild, push to Amazon ECR with immutable tags, enable image scanning and set lifecycle policies to remove old images.

Rebuild regularly to pick up patched base images, pin package versions, keep images small and grant SageMaker AI execution roles permission to pull from the repository.