Skip to content

Instantly share code, notes, and snippets.

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