title: Problem in getting result from 'aws ecr get-login'
body: <p>I am getting following error when given following command.</p>
  
  <pre><code>aws ecr get-login --region eu-central-1
  </code></pre>
  
  <p>Error</p>
  
  <pre><code>An error occurred (AccessDeniedException) when calling the GetAuthorizationToken operation: User: arn:aws:iam::314xxxx91079:user/git is not authorized to perform: ecr:GetAuthorizationToken on resource: *
  </code></pre>
  
  <p>My admin has given me access for this 'GetAuthorizationToken' resource. </p>
  
  <p>Most probably what I think the problem is 'arn:aws:iam::314xxxx91079:user/git' user being used for this command. When I login into aws console, I see my user name (IAM) as follow.</p>
  
  <pre><code>amit@iproxxx.com
  </code></pre>
  
  <p>How do I make 'get-login' to take this user name instead of user/git. I am very new to aws cli, and this command happens to be one of the build step.</p>