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
Implementation issue split out from #107.
Replace the mock-data body in
packages/ts-cloud/bin/commands/cost.ts(resources:unusedcommand) with real implementation:Acceptance
cloud resources:unusedreturns real candidates from the connected account.--profilehonored.cli.warn('not implemented')guard introduced by Stub commands in cost.ts return mock data — implement or guard with 'not implemented' warning #107.Related
resourcescommand (Implementcostcommand — current MTD spend + naive linear projection #108-ish) being implemented first to share the resource-discovery layer.