Skip to content

Implement optimize — opinionated cost-saving recommendations #112

Description

@glennmichael123

Implementation issue split out from #107.

Replace the mock-data body in packages/ts-cloud/bin/commands/cost.ts (optimize command) with real implementation. Composes resources + resources:unused + cost:breakdown into actionable recommendations:

  • Reserved Instance candidates (steady-state EC2 / RDS workloads).
  • Right-sizing (EC2 / RDS instances < 20% utilization).
  • Storage class transitions (S3 Standard → Intelligent-Tiering / Glacier).
  • Unused resources (delete recommendation, sourced from `resources:unused`).
  • CloudFront compression / caching wins (data transfer cost).

Acceptance

Notes

  • This is the heaviest of the five — depends on resources and resources:unused being real first. Last to implement.
  • Some recommendations (RI commitments, Compute Savings Plans) need account-level commitment-tracking data; can stub those with a flag (--include-commitments) once the rest is real.

Related

  • #107 — tactical guard

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