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
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년 전