Skip to content

Minimum number of data points required/resource runtime to get forecast cost of resources

0

I have ran multiple resources 4 days ago but i am not able to get it's forecast, neither on Console nor using API. I want to fetch it using API for monthly granularity forecast (Cost Explorer). what is the minimum number of days i will have to wait to see the forecast.

1 Answer
0

To generate a forecast in AWS Cost Explorer, you need to provide sufficient historical data. For a new service or resource, you need at least 24 hours of data before a forecast can be generated. However, the effectiveness of the forecast improves with more historical data, with at least two weeks' worth of data being ideal for more accurate predictions.

For Cost Explorer specifically, resource-level data (like specific instance IDs) is only available for the last 14 days by default. If you're trying to get forecasts for specific resources, you'll need to ensure you have resource-level data enabled in your Billing & Cost Management Preferences.

When using the GetCostForecast API with MONTHLY granularity, you should be aware that the forecast quality depends on having adequate historical data. Since you mentioned your resources have only been running for 4 days, this may not be sufficient for generating a reliable monthly forecast.

For the best results, you should wait until you have at least two weeks of historical data before expecting accurate forecasts. In some AWS services like Amazon Connect, at least one data point from the previous 4 weeks is required to generate a forecast, which suggests that Cost Explorer may have similar minimum requirements.
Sources
Optimize compute resources on Amazon ECS with Predictive Scaling | Containers
HI team, i want to calculate aws costing for particular instance for previous month | AWS re:Post
Resolve "insufficient data" error in Amazon Connect | AWS re:Post
GetCostForecast - AWS Billing and Cost Management

answered a year ago

EXPERT

reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.