Update aws_ecs.rst
Adding login to AWS ECR based on AWS CLI version 2
Modifying sample output to just show the Authentication token
@@ -119,12 +119,17 @@ container images.
Docker login with AWS ECR
.. code-block:: bash
+ # For AWS cli V1
$ aws ecr get-login --region us-west-2 --no-include-email
- # Sample output
+ # For AWS cli V2
+
+ $ aws ecr get-login-password --region us-west-2
+
+ # Sample output (Authentication Token)
- docker login -u AWS -p eyJ.................OOH https://account_id.dkr.ecr.us-west-2.amazonaws.com
+ eyJ.................OOH
Copy the output from previous step and run it in the terminal
