Documentation / Attribution / AWS Bedrock
AWS Bedrock
Connection steps for the daily pull are in the Bedrock connector guide. This page is how those dollars, and a FOCUS upload of the same spend, get a department and an agent.
There are two paths. They answer different questions. Cost Explorer is the daily total. The FOCUS upload is what carries tags.
What you set up
Daily total. Connect AWS Bedrock with the connector guide. Cost Explorer credentials need permission to read cost and usage. Until support@onaro.io turns Bedrock tags on, that pull is one total per day and has no tags to configure. After it is on, the cutover date on Source identities is the first day that splits by usage type and the first cost-center key.
Tags, when you want a department or an agent.
- Call models through an application inference profile, not by model id alone. One profile is one model. A workload that calls several models needs one profile per model, carrying the same keys. (Application inference profiles)
- Tag each profile. With no saved list, Meridian reads
oasa_cost_center, then CostCenter, Department, or cost-center, andoasa_agent, then Agent. The list on Source identities is the one that applies. See tagging. - Activate the tag keys as cost allocation tags in AWS Billing. Tags apply to cost incurred after activation. A backfill of up to 12 months is available only for months the resource already had the tag. (Activating tags, backfill)
- Create the department under Governance, with a code or name that matches the tag value. Create the agent under Agents & allocation with a name that matches the agent tag value. Meridian does not create the agent from the tag.
- Upload the AWS FOCUS-format Cost and Usage export on Uploads. An optional account-to-department crosswalk on that form can set a department when the row has no matching tag.
While the Cost Explorer connector is connected, Bedrock rows in a FOCUS upload are held. The upload tells you to resolve that reconciliation item before choosing a source of record. The hold is there so the daily total and the tagged lines are not both booked.
What Meridian receives
Cost Explorer. Until the switch is on, one charge per UTC day for Amazon Bedrock. Meridian asks Cost Explorer for usage type, then adds those amounts into a single daily total. Token counts are zero. Tags are not requested. After the switch is on, dates on or after the cutover stay split by usage type and the first cost-center key, including a key$ group that has cost and no value. (GetCostAndUsage) Cost data can lag by a day or two.
FOCUS upload. One row per line in the file you upload. For Bedrock that line can name the inference profile and the cost-allocation tags AWS copied onto it. Meridian accepts FOCUS 1.2 and 1.3, and is forward-tolerant of 1.4 columns. The inference profile ARN is not used as the agent.
How it's attributed
Until the switch is on, the daily Cost Explorer total is unattributed. A rule can match the vendor, or a person can assign the row. After the switch is on, a cost-center value is inherited when it matches a department, or mapped when Source identities maps that tag value. An empty tag group stays in the sum.
On a FOCUS row, Meridian reads tags in the order on Source identities. A cost-center tag whose value matches a department code or name sets the department. A pin on that page can point a value at a department instead. Tagging says what the default keys are. The row is inherited from the tag. An Agent tag sets the agent only when the value matches an existing agent name. A cost-center match is enough for a department even when the agent name does not match. If there is no tag match, the optional account crosswalk can still set a department.
A rule does not replace a department inherited from a tag. A person's assignment does not replace it either.
A FOCUS correction for an earlier period keeps that original period. If the month is locked, the correction becomes an adjustment line on a later draft.
What lands unattributed, and how to fix it
Until the switch is on, the Cost Explorer daily total lands unattributed. Fix it with a rule or an assignment, or upload FOCUS. You cannot recover tags from a day that was stored as the daily total. After the switch is on, an unmatched cost-center value is listed to map. An empty group is not dropped.
FOCUS rows land in the inbox with one of these reasons:
- "Invoked by model ID, no inference profile." Call the model through an application inference profile and tag that profile.
- "No cost allocation tags." Activate the keys in AWS Billing, then upload a file that contains them. Tags can take up to 24 hours to become activatable and up to 24 hours to activate. (Bedrock cost best practices)
- "Agent or other tags present, but no cost center tag." Add a cost-center key from the list on Source identities. The defaults include
oasa_cost_center, CostCenter, Department, and cost-center. - "Cost center value not mapped." Add a department whose code or name matches the value, or pin the value on Source identities. See tagging.
An Agent tag with no matching agent name does not, by itself, send the row to the inbox when the cost center matched a department. The department is set. The agent is left empty. Create the agent with that name and upload again for new rows. Rows already inherited are not rewritten.
Limits
- Until support turns the switch on, the daily pull has no per-agent split. Three profiles on one account are one number per day. After it is on, the split is usage type plus the first cost-center key. Agent, owner, and project keys are not separate Cost Explorer groups on this pull.
- Request metadata on the invoke call is stored on the invocation log. It is not a Cost Explorer group, and the cost and usage report has no per-request line. (Request metadata)
- Cost from before the tag existed on the resource is empty. Backfill does not fill those months. Deactivating a key and then backfilling removes the key from prior months as well.
- A payer account can have 500 active user-defined cost-allocation tag keys. (Billing quotas)
- The agent tag does not create agents. The profile ARN is not the agent.
- Provisioned throughput and batch usage that lack a profile show the model-id reason when they are unattributed. They are not a separate split.
- Held Bedrock FOCUS rows are not imported while Cost Explorer is connected. Pick one source of record for those lines.
Status
- AWS Bedrock is Available in the integrations catalog.