Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
224 views
in Technique[技术] by (71.8m points)

node.js - how to list images available in a public amazon ecr repo?

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...