Implementation issue split out from #107.
Replace the mock-data body in packages/ts-cloud/bin/commands/cost.ts (cost command) with real implementation:
- Query Cost Explorer for current month-to-date spend (use
CostExplorerClient.getCostByService with start = first of current month, end = today + 1 day).
- Compute naive linear projection:
total / days_elapsed * days_in_month.
- Optionally compare to last month for the
Change column.
Acceptance
Related
- #107 — tactical guard
- #104 — original cost CLI scope
Implementation issue split out from #107.
Replace the mock-data body in
packages/ts-cloud/bin/commands/cost.ts(costcommand) with real implementation:CostExplorerClient.getCostByServicewithstart = first of current month,end = today + 1 day).total / days_elapsed * days_in_month.Changecolumn.Acceptance
cloud costreturns real numbers from the connected AWS account.--profileflag honored (same plumbing ascost:analyze).cli.warn('not implemented')guard introduced by Stub commands in cost.ts return mock data — implement or guard with 'not implemented' warning #107.Related