Skip to content

Instantly share code, notes, and snippets.

@sasasin
Created March 3, 2023 13:30
Show Gist options
  • Save sasasin/bf8ffb6f2cc66ffd087d30a9b8349c51 to your computer and use it in GitHub Desktop.
Save sasasin/bf8ffb6f2cc66ffd087d30a9b8349c51 to your computer and use it in GitHub Desktop.
CodeBuild のビルドプロジェクト名とコンテナイメージ名をガッと出すやつ
#!/bin/bash
set -eo pipefail
aws codebuild list-projects \
| jq -r '.projects[]' \
| sort \
| xargs -IXXXX -P1 aws codebuild batch-get-projects --names XXXX \
| jq -r '.projects[] | [.name, .environment.image] | @csv'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment