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?
question from:
https://stackoverflow.com/questions/66052861/how-to-list-images-available-in-a-public-amazon-ecr-repo 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…