Container Virtual Registry
Automating container image migration from Amazon ECR to GitLab

Automating container image migration from Amazon ECR to GitLab

2/13/2025 · Tim Rizzi

What this post added

Introduces an automated GitLab CI pipeline to migrate container images from Amazon ECR to GitLab's Container Registry. The pipeline uses Docker-in-Docker, requires specific IAM permissions for ECR read-only access, and configures GitLab CI variables for AWS credentials and region. It automates the discovery of repositories and tags in ECR, then performs `docker pull`, `docker tag`, and `docker push` operations to transfer images to the GitLab registry. Best practices for off-peak execution, log monitoring, and ECR decommissioning are provided.

Read the original post ↗