-
Notifications
You must be signed in to change notification settings - Fork 832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS CLI ecr get-login throwing error Invalid choice #231
Comments
Submitted a pull request for this, but here's a line to do it auto-magically: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the Step “C: Push the Docker Image to Amazon ECR” you have to execute the following command:
$(aws ecr get-login --no-include-email)
But this command is only working in AWS CLI 1.x. Since AWS CLI 2.x, the command
get-login
no longer exists and you will get invalid choice error message. The following command is doing the trick:aws ecr get-login-password --region region | docker login --username AWS --password-stdin aws_account_id.dkr.ecr.region.amazonaws.com
It would be great seeing a hint in this tutorial. It would save the user a lot of research time.
Thanks.
The text was updated successfully, but these errors were encountered: