title: How to check if AWS ECR authentication token is not expired?
body: <p>I'm using <code>AWS ECR</code> for storing docker images. In my pipeline workflow, to push images to ECR, I need to get the authentication token to authenticate docker to AWS ECR. I do that by running the <code>aws ecr get-login-password</code> command. This all works well.</p>
  <p>Now when I have to repeat this, ideally I don't want to get a new token immediately as the previous one is valid for 12 hours. How can I check if the existing token is still valid and not expired? Couldn't find any <code>aws cli</code> command to do this?</p>