aws ce get-cost-and-usage
安全コストの照会
aws ce get-cost-and-usage --time-period ... --granularity MONTHLY --metrics UnblendedCost
期間・サービス別のコストをCLIで取得。--group-by SERVICEで「どこが高いか」を特定。請求急増の一次調査に。
実行例
aws ce get-cost-and-usage --time-period Start=2026-06-01,End=2026-06-11 --granularity DAILY --metrics UnblendedCost --group-by Type=DIMENSION,Key=SERVICEサービス別の日次コスト
書式
aws ce get-cost-and-usage --time-period Start=...,End=... --granularity DAILY --metrics UnblendedCost
実行前の注意
参照のみ。