containers-roadmap icon indicating copy to clipboard operation
containers-roadmap copied to clipboard

[ECR] [request]: Server-Side Search, Sort & Filters

Open fortejas opened this issue 5 years ago • 9 comments

Tell us about your request The CLI supports pagination on the aws ecr describe-repositories call (docs) but I would like support for filtering, searching and sorting on the ECR APIs. The syntax would be similar to the EC2 describe-instances filters (docs).

$ # Return the repos that are tagged as part of the alpha project.
$ aws ecr describe-repositories --filters 'Name=tag:Project,Values=alpha'
$ # Search for a repo that starts with "dev" (regex)
$ aws ecr describe-repositories --filters 'Name=repositoryName,Values=^dev*'
$ # Sort the images in the my-app repository by imagePushedAt
$ aws ecr describe-images --repository-name my-app --sortby imagePushedAt

Which service(s) is this request for? ECR

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?

With the default limit of 10000 repos and 10000 images (docs), being able to sort, filter and search for images and repos would be extremely useful.

Are you currently working around this issue?

Currently, the whole list needs to be filtered, sorted and searched client-side via the --query option, jq or a custom script using the SDKs.

fortejas avatar Jul 21 '19 12:07 fortejas

Thanks for your feedback. You're right: we support this in our web UX today, but it's done client side, and we should support this in our APIs, too. I don't have a date for this right now. I'd encourage others to vote for the issue to help us determine its relative priority.

jtoberon avatar Jul 31 '19 04:07 jtoberon

The API is very slow with a large number of images, the ability to filter out using name would be a great help.

MaciejKucia avatar Sep 26 '21 11:09 MaciejKucia

@jtoberon any update here by chance?

RONNCC avatar Aug 18 '22 05:08 RONNCC

@fortejas can you share if filtering by “repository tag” or “repository name” is more helpful? Would like to hear from others on their thoughts as well.

arunsollet avatar Sep 04 '22 04:09 arunsollet

@arunsollet Would absolutely love the ability to be able to filter by repository tag.

ingalls avatar Jan 20 '23 20:01 ingalls

👍 It would be great if describe-images had server-side filters on imagePushedAt/imageScanCompletedAt start and end times so clients could query for images in particular ranges.

And 💯 being able to specify a server-side sort any of the datetime fields in the response object would be super helpful.

vksrinivasan1 avatar Apr 21 '23 14:04 vksrinivasan1

+1 to regex filtering of repo names and filtering by tags

jttyeung avatar Oct 05 '23 17:10 jttyeung

This feature would be really very nice.

IsaqueRock avatar Nov 24 '23 22:11 IsaqueRock

Filtering would be useful to distinguish between repositories that store Docker image and Helm packages.

volphy avatar Feb 15 '24 08:02 volphy