From f4a0970f26e4f47c68adccf2c68522570ec0be99 Mon Sep 17 00:00:00 2001 From: Jamie Alessio Date: Sun, 30 Jan 2022 08:36:31 -0800 Subject: [PATCH] Fix AWS region for `docker login` command I think the `docker login` command should be targeting `us-west-2` since that is the region where the ECR repo is located. --- .../03-deploy-apps/05-publish-docker-image.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/reference-architecture/example-usage-guide/03-deploy-apps/05-publish-docker-image.md b/docs/guides/reference-architecture/example-usage-guide/03-deploy-apps/05-publish-docker-image.md index 053801f14c..1948ccb3b4 100644 --- a/docs/guides/reference-architecture/example-usage-guide/03-deploy-apps/05-publish-docker-image.md +++ b/docs/guides/reference-architecture/example-usage-guide/03-deploy-apps/05-publish-docker-image.md @@ -51,7 +51,7 @@ docker tag simple-web-app:latest 234567890123.dkr.ecr.us-west-2.amazonaws.com/si Next, authenticate your Docker client with ECR in the shared-services account: ```bash -aws ecr get-login-password --region "us-west-2" | docker login --username AWS --password-stdin 234567890123.dkr.ecr.us-east-1.amazonaws.com +aws ecr get-login-password --region "us-west-2" | docker login --username AWS --password-stdin 234567890123.dkr.ecr.us-west-2.amazonaws.com ``` And finally, push your newly tagged image to publish it: