aws / containers-roadmap

This is the public roadmap for AWS container services (ECS, ECR, Fargate, and EKS).
https://aws.amazon.com/about-aws/whats-new/containers/
Other
5.21k stars 319 forks source link

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

Open fortejas opened 5 years ago

fortejas commented 5 years ago

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.

jtoberon commented 5 years ago

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.

MaciejKucia commented 3 years ago

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

RONNCC commented 2 years ago

@jtoberon any update here by chance?

arunsollet commented 2 years ago

@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.

ingalls commented 1 year ago

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

vksrinivasan1 commented 1 year ago

👍 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.

jttyeung commented 1 year ago

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

IsaqueRock commented 10 months ago

This feature would be really very nice.

volphy commented 8 months ago

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

dnit commented 2 months ago

Been 5 years and still open?