How to pull Claude costs out of Marketplace cost category via FlexReports.
search cancel

How to pull Claude costs out of Marketplace cost category via FlexReports.

book

Article ID: 441814

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

When running Claude via Bedrock the charge will be captured under the Amazon marketplace service category.

In order to pull this cost out of the platform without pulling out all marketplace charges make use of the FlexReport template below.

Resolution

Find the following FlexReport stub - 

{
  "sqlStatement": "SELECT timeInterval_Month AS Month, SUM(lineItem_UnblendedCost) AS SUM_lineItem_UnblendedCost, lineItem_ResourceId AS LineItem_ResourceId, lineItem_UsageType AS LineItem_UsageType, lineItem_Operation AS LineItem_Operation FROM AWS_CUR WHERE (product_ProductName LIKE '%Claude%') GROUP BY timeInterval_Month, lineItem_ResourceId, lineItem_UsageType, lineItem_Operation ORDER BY Month ASC",
  "needBackLinkingForTags": true,
  "dataGranularity": "MONTHLY",
  "timeRange": {
    "from": "2025-05",
    "to": "2026-05"
  },
  "limit": -1
}

 

This will solely report on charges associated with Claude, without including all marketplace charges contained within the drilldown.