ReviewOS

stacks/ts-cloud

Implement `resources` — list AWS resources via Resource Groups Tagging API

#110
Closed glennmichael123 opened this 24 days ago · 0 comments
24 days ago

Implementation issue split out from #107.

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

  • Use AWS Resource Groups Tagging API (tagging:GetResources) for a unified resource list across services. Falls back to per-service Describe* / List* calls if tagging is incomplete.
  • Honor the existing --type <ec2|rds|s3|...> filter.

Acceptance

  • cloud resources lists actual resources in the connected account.
  • --type filters by resource type.
  • --profile honored.
  • Replaces the cli.warn('not implemented') guard introduced by #107.

Notes

  • "Total Cost/mo" column probably needs to come from a Cost Explorer call grouped by RESOURCE_ID — that's only available with CUR (Cost and Usage Reports) configured. If CUR isn't set up, blank that column or document the prereq.
  • #107 — tactical guard

Sign in to comment on this issue.