AWS CLIでアカウントIDを取得する
よくやるやつ
code:bash
ACCOUNT_ID=$(aws sts get-caller-identity --output text --query 'Account')
#memo