リポジトリ以下に設定されている最新のs3バケットの設定を見る時のコマンド
code:shell
git grep -rn 'resource "aws_s3_bucket"' | cut -d ':' -f1 | sort | uniq | xargs -I{} bash -c 'echo {} && git blame {} | grep ".*2024.*resource \"aws_s3_bucket\""'
1. git grepで resource "aws_s3_bucket"
2. : で区切って1番目
3. sort
4. uniq
5. echo ファイルパス
6. git blameと.*2024.*resouce "aws_s3_bucket"を引っ掛ける