Skip to content

Commit 59f557f

Browse files
authored
Update ECR login commands in system packages docs (#1455)
1 parent a72683b commit 59f557f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/deployments/system-packages.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,14 @@ Create a repository to store your image:
8282
```bash
8383
# We create a repository in ECR
8484

85+
export AWS_REGION="***"
8586
export AWS_ACCESS_KEY_ID="***"
8687
export AWS_SECRET_ACCESS_KEY="***"
88+
export REGISTRY_URL="***" # this will be in the format "<aws_account_id>.dkr.ecr.<aws_region>.amazonaws.com"
8789

88-
eval $(aws ecr get-login --no-include-email --region us-east-1)
90+
aws ecr get-login-password --region $AWS_REGION | docker login --username AWS --password-stdin $REGISTRY_URL
8991

90-
aws ecr create-repository --repository-name=org/my-api --region=us-east-1
92+
aws ecr create-repository --repository-name=org/my-api --region=$AWS_REGION
9193
# take note of repository url
9294
```
9395

0 commit comments

Comments
 (0)