【awscli】AWS使用料を計算する(Cost Explorer)
指定した期間(2/1~2/9)の AWS 利用料金
code:count cost by period
aws ce get-cost-and-usage --granularity MONTHLY --metrics BlendedCost --time-period Start=2023-02-01,End=2023-02-09
--granularity:計算の粒度。利用可能な単位は以下
月:MONTHLY
日:DAILY
時間:HOURLY
--metrics:rateを設定する。これから調査する
--time-period:計算始めと終わりの指定
参考