AWS Builder Center

AWS App Runner Automated Deployment Pipeline: Migration to Private ECR

AWS App Runner Automated Deployment Pipeline: Migration to Private ECR

AWS App Runner Automated Deployment Pipeline: Migration to Private ECR
Regional Deployment: us-east-2
 
Target Repository Path:<897192298286>.dkr.ecr.us-east-2.amazonaws.com/test-app-runner
 
Source Assets:
Source ImageRegistry ProviderDestination
hello-app-runnerAWS Public ECRtest-app-runner:latest (Private)
hello-worldDocker Hubtest-app-runner:latest (Private)
demo
demo
 
# 1. Pull the public image to your local environment
docker pull public.ecr.aws/aws-containers/hello-app-runner:latest
 
# 2. Authenticate your Docker client to Account B (us-east-2)
aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 897192298286.dkr.ecr.us-east-2.amazonaws.com
 
# 3. Tag the image for the new destination
docker tag public.ecr.aws/aws-containers/hello-app-runner:latest   897192298286.dkr.ecr.us-east-2.amazonaws.com/test-app-runner:latest
# 4. Push the image to the private repository in Account B
docker push 897192298286.dkr.ecr.us-east-2.amazonaws.com/test-app-runner:latest
# 1. Pull the public image to your local environment
docker pull crccheck/hello-world
# 2. Tag the image for the new destination
docker tag crccheck/hello-world  897192298286.dkr.ecr.us-east-2.amazonaws.com/test-app-runner:latest
# 3. Push the image to the private repository in Account B
docker push 897192298286.dkr.ecr.us-east-2.amazonaws.com/test-app-runner:latest
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article