AWS Cli – ECR display only image tags in the repository

Example using AWS Cli only, without third-party utilities

aws ecr describe-images \
--region eu-west-1 \
--repository-name artem-services \
--query "sort_by(imageDetails,& imagePushedAt)[ * ].imageTags[ * ]" \
--output text

 

Example using "jq" utility

aws ecr describe-images \
--region eu-west-1 \
--repository-name artem-services \
| jq '.imageIds | map (.imageTag)|sort|.[]'

Tagged: Tags

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments