Skip to content

Implement cost command — current MTD spend + naive linear projection #108

Description

@glennmichael123

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions