Cost explorer CLI : end date past the beginning of next month

0

While I can get a forecast https://console.aws.amazon.com/cost-management/home?region=eu-central-1#/custom?groupBy=None&hasBlended=false&hasAmortized=false&excludeDiscounts=true&excludeTaggedResources=false&excludeCategorizedResources=false&excludeForecast=false&timeRangeOption=Custom&granularity=Monthly&reportName=&reportType=CostUsage&isTemplate=true&filter=%5B%5D&chartStyle=Group&forecastTimeRangeOption=Custom&usageAs=usageQuantity&startDate=2021-08-01&endDate=2021-08-31&forecastStartDate=2021-08-19&forecastEndDate=2021-12-31 on the console, I get an error with the CLI

% aws ce get-cost-and-usage --time-period Start=2021-08-01,End=2021-12-31 --granularity MONTHLY --metrics "BlendedCost" "UnblendedCost" "UsageQuantity"

An error occurred (ValidationException) when calling the GetCostAndUsage operation: end date past the beginning of next month

Edited by: PeterS99084 on Aug 19, 2021 1:07 AM

已提問 3 年前檢視次數 758 次
1 個回答
0

This is the correct command:

aws ce get-cost-forecast --time-period Start=2021-08-19,End=2021-12-31 --granularity MONTHLY --metric BLENDED_COST

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南