2回答
- 新しい順
- 投票が多い順
- コメントが多い順
1
It looks like your dimension key value is wrong. When I use USAGE_TYPE_GROUP
I get a valid response:
$ aws ce get-usage-forecast --time-period Start=2023-02-01,End=2023-07-01 --granularity MONTHLY --metric USAGE_QUANTITY --filter '{"Dimensions": {"Key":"USAGE_TYPE_GROUP", "Values": ["EC2: Running Hours"]}}' | jq . { "Total": { ... } }
回答済み 1年前
1
You can find valid values in the AWS Command Line Reference. For get-usage-forecast in particular, you can find valid values here: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ce/get-usage-forecast.html
回答済み 2ヶ月前
関連するコンテンツ
- AWS公式更新しました 3年前