- Newest
- Most votes
- Most comments
The discrepancy you're seeing between the Cost Explorer and your query results regarding Reserved Instance (RI) fees is due to how amortization is handled. In Cost Explorer's amortized view, RI fees are spread evenly across the commitment term, which is why you don't see a spike on the purchase date.
To align your query with Cost Explorer's amortized view, you need to modify how you handle the RIFee line item type. Instead of including the full unused fees in your calculation, you should amortize these costs over the term of the reservation.
Here's how you can modify your query to better reflect the amortized costs as shown in Cost Explorer:
-
For the 'RIFee' line item, instead of using: (reservation_unused_amortized_upfront_fee_for_billing_period + reservation_unused_recurring_fee)
You should use: (reservation_amortized_upfront_fee_for_billing_period + reservation_effective_cost)
-
You may also want to include the 'Fee' line item related to RIs in your amortization calculation.
With these changes, your query should more closely match the amortized view in Cost Explorer, distributing the RI costs evenly across the term rather than showing a spike on the purchase date.
Remember that the exact amortization schedule in Cost Explorer might differ slightly from what you can achieve with a custom query, as Cost Explorer uses specific algorithms to spread costs. However, this approach should give you a closer approximation.
Also, keep in mind that your accounting policies may dictate a different amortization schedule than what's shown in AWS Cost Explorer. Some organizations may choose to amortize purchases on an even monthly schedule, while others might use different accounting periods. Ensure that your query aligns with your organization's specific accounting practices if they differ from the default AWS amortization.
Sources
Knowing the differences between Billing and Cost Explorer data - AWS Cost Management
Aligning Cloud Costs with the General Ledger for Accurate Financial Analysis | AWS Cloud Financial Management
answered 2 years ago
Hi team, if anyone can answer the above comment it'll be amazing - do you maybe have a full query for CUR that it's results will match the amortized cost explorer results exactly?
answered 2 years ago
Hi team,
I'm confused by your suggestion to sum reservation_amortized_upfront_fee_for_billing_period + reservation_effective_cost under RIFee line items because the documentation here https://docs.aws.amazon.com/cur/latest/userguide/reservation-columns.html states that reservation_effective_cost is calculated by taking the amortizedUpfrontCostForUsage and adding it to the recurringFeeForUsage. So it seems to me that:
- reservation_effective_cost is only populated for usage, and doesn't capture unused RI fees
- Adding reservation_amortized_upfront_fee_for_billing_period would double count the amortized upfront fee
Could you confirm if I'm missing something?
answered a year ago
Relevant content
asked 2 years ago
asked 5 years ago
asked 2 years ago
- AWS OFFICIALUpdated 6 months ago

Thanks agent + team, do you maybe have a full query for CUR that it's results will match the amortized cost explorer results exactly? Is it the above query with the suggested RIFee change or there is anything else?