-
-
Save AnilPothula/d82dc737f2775699e4abf089f243dbc1 to your computer and use it in GitHub Desktop.
Count the number of images in an AWS ECR repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| aws ecr list-images --repository-name $1 | jq '.imageIds | unique_by(.imageDigest) | length' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment