ECR repository and authentication
ECR stores container images in repositories. Push and pull require appropriate IAM actions and registry authentication. Authentication tokens are temporary; use supported credential mechanisms and least privilege. A repository URI identifies the account, region, repository, and tag or digest, not a running deployment. For example, a pipeline pushes an image to one ECR repository, while a workload role receives only the pull permissions it needs.
A pipeline pushes an image to one ECR repository, while a workload role receives only the pull permissions it needs.
A pipeline obtains temporary AWS credentials with permission for one ECR repository. It then authenticates the Docker client to the appropriate account-and-region registry using the supported token flow. Tagging an existing local image with that repository URI names the push destination; pushing uploads the artifact. None of these steps starts an application instance.
A registry stores image artifacts. A repository groups related images. Authentication proves a client identity or token, while authorization controls allowed actions. A workload that pulls images needs a different permission scope from a publisher. Check account, region, repository, and credential lifetime when push or pull fails. Avoid printing login passwords or embedding cloud credentials in a Dockerfile. Publication enables later deployment, but release automation must separately update its runtime platform and validate health. A successfully pushed artifact can still have incorrect configuration, incompatible architecture, or an application that exits immediately.
A pipeline pushes an image to one ECR repository, while a workload role receives only the pull permissions it needs.
Do not overlook this operational distinction: A repository URI identifies the account, region, repository, and tag or digest, not a running deployment.