Skip to content

Implement resources:unused — find idle resources via CloudWatch metrics #111

Description

@glennmichael123

Implementation issue split out from #107.

Replace the mock-data body in packages/ts-cloud/bin/commands/cost.ts (resources:unused command) with real implementation:

  • For each resource type, define a heuristic for "unused" using CloudWatch metrics:
    • EC2: avg CPU < 5% over 30 days
    • RDS: zero connections + minimal IOPS over 14 days
    • EBS: detached volumes
    • EIP: not associated
    • S3: empty buckets + no requests over 90 days
    • Lambda: zero invocations over 30 days
    • ElastiCache: low cache hit rate + zero connections
  • Aggregate into the same table shape the current mock returns.

Acceptance

Related

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