Amazon Bedrock AI charges via FlexReporting
search cancel

Amazon Bedrock AI charges via FlexReporting

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_LineItemType AS LineItem_LineItemType, product_ProductName AS Product_ProductName FROM AWS_CUR WHERE (product_ProductName LIKE '%Amazon Bedrock Edition%') GROUP BY timeInterval_Month, lineItem_LineItemType, product_ProductName ORDER BY LineItem_LineItemType ASC",
  "needBackLinkingForTags": true,
  "dataGranularity": "MONTHLY",
  "timeRange": {
    "last": 1,
    "excludeCurrent": true
  },
  "limit": -1
}

 

This will solely report on charges associated with AI running under Amazon Bedrock, without including all marketplace charges contained within the drilldown.