i'd like use the aws cli to list images available here: https://gallery.ecr.aws/lambda/nodejs
when i try the following command:
aws ecr-public describe-image-tags --repository-name lambda/nodejs
i get this error:
User: arn:aws:sts::<my-session> is not authorized to perform: \
ecr-public:DescribeImageTags on resource: arn:aws:ecr-public::<my-account>:repository/lambda/nodejs
how do i specify the aws public repository, and not one of my own?
the api docs mention a --registry-id
option, to supply an account ID, or if left blank "..the default public registry is assumed", but it seems like my account info is still being inserted.
Q: can someone provide a working example of a command that lists each of (or the first pagination of) the tags in the Image tags panel of a repo in the Amazon ECR Public Gallery?
At time of writing, this can only be found by visiting the ECR Public gallery. There is no way to programmatically get a list of tags in ECR Public for a repository you haven't been explicitly granted API access to. Here's the relevant roadmap item https://github.com/aws/containers-roadmap/issues/1262