とても良さそうなので検証も兼ねて使ってみる
環境
- MacBook Pro(2020) intelチップ
- MacOS Monterey v12.3.1
- Homebrew 4.0.16
インストール
kayac/tap
の方ではなく、fujiwara/tap
の方なのでリポジトリを指定してインストールする
brew search fujiwara/tap
==> Formulae
fujiwara/tap/aswrap fujiwara/tap/ecsta fujiwara/tap/lambroll fujiwara/tap/maws-cli fujiwara/tap/rin fujiwara/tap/stretcher
fujiwara/tap/cloudwatch-to-mackerel fujiwara/tap/fluent-agent-hydra fujiwara/tap/macaroni fujiwara/tap/nssh fujiwara/tap/sailtrim fujiwara/tap/tfstate-lookup
fujiwara/tap/ecrm fujiwara/tap/kinesis-tailf fujiwara/tap/maprobe fujiwara/tap/riex fujiwara/tap/sardine fujiwara/tap/tracer
brew install fujiwara/tap/ecrm
==> Fetching fujiwara/tap/ecrm
==> Downloading https://github.com/fujiwara/ecrm/releases/download/v0.3.3/ecrm_0.3.3_darwin_amd64.tar.gz
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/395700951/d6c446a3-7d84-4586-b4a3-34f7528801a0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230502%2Fus-east-1%2
######################################################################################################################################################################################################################################### 100.0%
==> Installing ecrm from fujiwara/tap
🍺 /usr/local/Cellar/ecrm/0.3.3: 6 files, 14.4MB, built in 9 seconds
==> Running `brew cleanup ecrm`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
インストールできた
NAME:
ecrm - A command line tool for managing ECR repositories
USAGE:
ecrm [global options] command [command options] [arguments...]
VERSION:
0.3.3
COMMANDS:
delete Scan ECS/Lambda resources and delete unused ECR images.
generate Genarete ecrm.yaml
plan Scan ECS/Lambda resources and find unused ECR images to delete safety.
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--config FILE, -c FILE Load configuration from FILE (default: "ecrm.yaml") [$ECRM_CONFIG]
--format value plan output format (table, json) (default: "table") [$ECRM_FORMAT]
--log-level value Set log level (debug, info, notice, warn, error) (default: "info") [$ECRM_LOG_LEVEL]
--no-color Whether or not to color the output (default: false) [$ECRM_NO_COLOR]
--help, -h show help (default: false)
--version, -v print the version (default: false)