Aws/kiro Usage
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:StartQueryExecutionathena:GetQueryExecutionathena:GetQueryResultss3:GetObject(on the Athena results bucket and the CUR bucket)glue:GetTable,glue:GetDatabase(Glue catalog for the CUR table)identitystore:DescribeUser(only whenresolveIdentitiesis 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-01Method
- scan — Query the CUR for one billing period, resolve identities, and
write a per-user
scan_resultsresource 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.
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.
scanmethod — 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 explicitmonth.scan_resultsresource — 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
mergeAccountsmap folds secondary Identity Store accounts into a primary for accurate per-person rollups.
Upgrade note: New extension; no prior versions and no migration.
Resources
Per-user AWS Kiro spend and credit consumption with tier rollup and
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.
scanmethod — 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 explicitmonth.scan_resultsresource — 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
mergeAccountsmap folds secondary Identity Store accounts into a primary for accurate per-person rollups.
Upgrade note: New extension; no prior versions and no migration.
- 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