title: how to list images available in a public amazon ecr repo?
body: <p>i'd like use the aws cli to list images available here: <a href="https://gallery.ecr.aws/lambda/nodejs" rel="nofollow noreferrer">https://gallery.ecr.aws/lambda/nodejs</a></p>
  <p>when i try the following command:</p>
  <pre class="lang-sh prettyprint-override"><code>aws ecr-public describe-image-tags --repository-name lambda/nodejs
  </code></pre>
  <p>i get this error:</p>
  <pre class="lang-sh prettyprint-override"><code>User: arn:aws:sts::&lt;my-session&gt; is not authorized to perform: \
  ecr-public:DescribeImageTags on resource: arn:aws:ecr-public::&lt;my-account&gt;:repository/lambda/nodejs
  </code></pre>
  <p>how do i specify the aws public repository, and not one of my own?</p>
  <p>the <a href="https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecr-public/describe-image-tags.html" rel="nofollow noreferrer">api docs</a> mention a <code>--registry-id</code> option, to supply an account ID, or if left blank <em>&quot;..the default public registry is assumed&quot;</em>, but it seems like my account info is still being inserted.</p>
  <p><strong>Q:</strong> can someone provide a working example of a command that lists each of (or the first pagination of) the tags in the <em>Image tags</em> panel of a repo in the <a href="https://gallery.ecr.aws/" rel="nofollow noreferrer">Amazon ECR Public Gallery</a>?</p>