Skip to main content

Aws/kiro Usage

@webframp/aws/kiro-usagev2026.09.04.1· 7d agoMODELSREPORTS
01README

AWS Kiro per-user usage and spend monitoring — queries the Cost and Usage Report (CUR) via Athena for seat cost and credit consumption per IAM Identity Store principal, resolves principals to names/emails, and reconciles the account-level enterprise discount (EDP).

Cost Explorer collapses every Kiro line item to NoResourceId and cannot attribute spend to individuals; the CUR carries the principal on each per-user line, so this model uses CUR-via-Athena rather than Cost Explorer.

Authentication

Uses the AWS credential chain (profiles, SSO, credential-process). Configure a profile with Athena + CUR S3 read in the account hosting the CUR table, and (for identity resolution) a profile with identitystore:DescribeUser.

Required IAM Permissions

  • athena:StartQueryExecution
  • athena:GetQueryExecution
  • athena:GetQueryResults
  • s3:GetObject (on the Athena results bucket and the CUR bucket)
  • glue:GetTable, glue:GetDatabase (Glue catalog for the CUR table)
  • identitystore:DescribeUser (only when resolveIdentities is true)

Usage

swamp model create @webframp/aws/kiro-usage kiro-usage \
  --global-arg 'curProfile=my-root/ReadOnlyPlus' \
  --global-arg 'athenaDatabase=awscurdatabase' \
  --global-arg 'athenaTable=my_cur_table' \
  --global-arg 'athenaWorkgroup=primary' \
  --global-arg 'athenaOutputLocation=s3://aws-athena-query-results-…/' \
  --global-arg 'identityStoreId=d-1234567890'

# Scan the most recent complete month
swamp model method run kiro-usage scan

# Scan a specific billing period
swamp model method run kiro-usage scan --input month=2026-08-01

Method

  • scan — Query the CUR for one billing period, resolve identities, and write a per-user scan_results resource with tier rollup and EDP reconciliation.

Report

  • @webframp/aws/kiro-usage-report — Method-scope report rendering the per-user table, tier rollup, and cost reconciliation.
02Release Notes

2026.09.04.1

Changed: Bump @aws-sdk/* 3.1121.0 → 3.1126.0 (3 packages)

2026.09.01.1

Added: Initial release of @webframp/aws/kiro-usage.

Per-user AWS Kiro usage and spend monitoring sourced from the Cost and Usage Report (CUR) via Athena — the only path that attributes Kiro spend and credit consumption to individuals, since Cost Explorer collapses Kiro line items to NoResourceId.

  • scan method — queries one billing period for per-user seat cost (by tier) and credit consumption, resolves IAM Identity Store principals to names/emails, and reconciles the account-level enterprise discount (EDP). Defaults to the most recent complete month; accepts an explicit month.
  • scan_results resource — per-user rows, per-tier rollup, account-level gross/discount/net reconciliation, and grand totals.
  • @webframp/aws/kiro-usage-report — method-scope report rendering the per-user table, tier rollup, and reconciliation as markdown + JSON.
  • PII posture — identity resolution is opt-in via resolveIdentities.
  • Duplicate accounts — optional mergeAccounts map folds secondary Identity Store accounts into a primary for accurate per-person rollups.

Upgrade note: New extension; no prior versions and no migration.

03Models1
@webframp/aws/kiro-usagev2026.09.04.1aws/kiro_usage.ts
fn scan()
Query the CUR via Athena for per-user Kiro seat cost and credit

Resources

scan_results(6h)— Per-user Kiro usage and allocated spend for one billing period
04Reports1
@webframp/aws/kiro-usage-reportmethod
kiro_usage_report.ts

Per-user AWS Kiro spend and credit consumption with tier rollup and

aiawskirofinopscostreport
05Previous Versions1
2026.09.01.1

2026.09.01.1

Added: Initial release of @webframp/aws/kiro-usage.

Per-user AWS Kiro usage and spend monitoring sourced from the Cost and Usage Report (CUR) via Athena — the only path that attributes Kiro spend and credit consumption to individuals, since Cost Explorer collapses Kiro line items to NoResourceId.

  • scan method — queries one billing period for per-user seat cost (by tier) and credit consumption, resolves IAM Identity Store principals to names/emails, and reconciles the account-level enterprise discount (EDP). Defaults to the most recent complete month; accepts an explicit month.
  • scan_results resource — per-user rows, per-tier rollup, account-level gross/discount/net reconciliation, and grand totals.
  • @webframp/aws/kiro-usage-report — method-scope report rendering the per-user table, tier rollup, and reconciliation as markdown + JSON.
  • PII posture — identity resolution is opt-in via resolveIdentities.
  • Duplicate accounts — optional mergeAccounts map folds secondary Identity Store accounts into a primary for accurate per-person rollups.

Upgrade note: New extension; no prior versions and no migration.

06Stats
A
100 / 100
Downloads
1
Archive size
267.7 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
07Platforms
08Labels