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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠