title: AWS ECR image list
body: <p>I have a ECR repository setup and it now contains two images with sequential tags 1 and 2.I am planning to push the docker image automatically from this time, My requirement is when next time i push an image,its tag should be 3,so i have to somehow identify that the next number should be 3 since latest version is 2. I do not want to keep this versioning locally. So i need this information from the ECR itself. Any thoughts? the following command will give list of all the images in the repository </p>
  
  <pre><code>aws ecr list-images 
  </code></pre>