runbooks workspaces costΒΆ
Auto-generated from
runbooks workspaces cost --helpon 2026-05-21. Source of truth: runbooks PyPI package v1.3.22
Usage: runbooks workspaces cost [OPTIONS]
Get WorkSpaces cost from Cost Explorer (Way 2 of 4-way cross-validation).
Queries ce:GetCostAndUsage grouped by LINKED_ACCOUNT filtered to
SERVICE="Amazon WorkSpaces". Produces cost-<date>.csv (MONTHLY) or cost-
daily-<date>.csv (DAILY).
Example:
runbooks workspaces cost --billing-profile $AWS_BILLING_PROFILE
--granularity DAILY --months 3
Options:
--billing-profile TEXT AWS profile for Cost Explorer (env:
AWS_BILLING_PROFILE).
--months INTEGER Number of months back to query Cost Explorer.
[default: 1]
--granularity [daily|monthly] CE granularity. DAILY emits cost-
daily-<date>.csv with one row per
(date,account); MONTHLY emits cost-<date>.csv
(legacy). Use DAILY for HITL Q7 3-month daily
report. Per-WorkSpace daily allocation is
MEDIUM confidence without cost allocation
tags. [default: MONTHLY]
--output TEXT Output directory for cost CSV. [default:
tmp/cloudops/workspaces/]
--quiet Suppress Rich table output.
--help Show this message and exit.