Last active
October 19, 2022 04:00
-
-
Save shcallaway/fdd89bd7efa2fce34eafcb05e30ede05 to your computer and use it in GitHub Desktop.
Count the number of images in an AWS ECR repository
This file contains 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