Interview Prep/Docker/Registries, Tagging & Supply Chain

How do you give an EKS node or CI job access to ECR with least privilege?

IntermediateProductionRegistries, Tagging & Supply Chain
Answer

Pull: node role with AmazonEC2ContainerRegistryReadOnly (or scoped ecr:GetAuthorizationToken plus BatchGetImage, GetDownloadUrlForLayer on the specific repos). Push: CI role via GitHub OIDC (no static keys) with ecr:PutImage, InitiateLayerUpload, UploadLayerPart, CompleteLayerUpload, BatchCheckLayerAvailability on one repository.

All Docker questions Roadmap: Docker & containers

More on Registries, Tagging & Supply Chain