Skip to content

Instantly share code, notes, and snippets.

@dustinbutterworth
Created September 10, 2020 13:06
Show Gist options
  • Save dustinbutterworth/a9b6d91ca3df229ac093ee66e1a42be1 to your computer and use it in GitHub Desktop.
Save dustinbutterworth/a9b6d91ca3df229ac093ee66e1a42be1 to your computer and use it in GitHub Desktop.
Search for tag starting with the word "jenkins" in an ECR Image
aws ecr describe-images \
--repository-name ${REPO_NAME} \
--image-ids imageTag=${IMAGE_TAG} \
--profile prod \
| jq '.imageDetails[].imageTags[] |select (. | test("^jenkins"))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment