展示HN:AWS-doctor – 一个基于终端的Go语言编写的AWS健康检查和成本优化工具
Show HN: AWS-doctor – A terminal-based AWS health check and cost optimizer in Go

原始链接: https://github.com/elC0mpa/aws-doctor

## aws-doctor:您的开源 AWS 健康检查工具 aws-doctor 是一个基于 Go 的终端工具,旨在主动管理 AWS 成本并优化云基础设施。作为 AWS Trusted Advisor 的免费开源替代品,它提供支出模式的洞察,并识别潜在的浪费。 该工具提供关键功能,包括**周期之间的成本比较**、**浪费检测**(识别空闲或低效资源,即“僵尸”资源)以及**趋势分析**(可视化过去六个月的成本历史)。 aws-doctor 由一位云架构师创建,旨在解决对快速、情境化的成本分析的需求,超越 AWS 控制台提供的原始数据。它自动化常规检查,并帮助用户了解资金的*去向*以及*如何*提高效率。 可以通过 `go install github.com/elC0mpa/aws-doctor@latest` 轻松安装,未来的开发包括报告导出和更广泛的操作系统发行版。

## AWS-doctor:一个基于终端的 AWS 健康与成本工具 一个名为 `aws-doctor` 的新开源工具,使用 Go 语言构建,帮助用户主动管理和优化 AWS 支出。它由一位对有限的免费 AWS 健康检查感到沮丧的云架构师创建,是一个基于终端的用户界面 (TUI),旨在进行快速的账户“体检”。 `aws-doctor` 通过扫描未使用的资源(如已停止的实例、未附加的卷以及即将到期的预留实例)来识别潜在的浪费。它还通过将本月迄今为止的支出与上个月进行比较,突出显示支出增加,从而提供成本诊断。还可以查看过去六个月的成本趋势。 该工具使用现有的 AWS 凭证在本地运行,并利用 AWS SDK v2 以及 Bubbletea 和 Lipgloss 库来实现其用户界面。开发者欢迎对代码的反馈以及对其他浪费检测模式的建议。 在 GitHub 上找到它:[github.com/elc0mpa](github.com/elc0mpa)
相关文章

原文

A terminal-based tool that acts as a comprehensive health check for your AWS accounts. Built with Golang, aws-doctor diagnoses cost anomalies, detects idle resources, and provides a proactive analysis of your cloud infrastructure—effectively giving you the insights of AWS Trusted Advisor without the need for a Business or Enterprise support plan.

  • 📉 Cost Comparison: Compares costs between the current and previous month for the exact same period (e.g., comparing Jan 1–15 vs Feb 1–15) to give a fair assessment of spending velocity.
  • 🏥 Waste Detection (The "Checkup"): Scans your account for "zombie" resources and inefficiencies that are silently inflating your bill.
  • 📊 Trend Analysis: Visualizes cost history over the last 6 months to spot long-term anomalies.

As a Cloud Architect, I often need to check AWS costs and billing information. While the AWS Console provides raw data, it lacks the immediate context I need to answer the question: "Are we spending efficiently?"

I created aws-doctor to fill that gap. It doesn't just show you the bill; it acts as a diagnostic tool that helps you understand where the money is going and what can be cleaned up. It automates the routine checks I used to perform manually, serving as a free, open-source alternative to the paid recommendations found in AWS Trusted Advisor.

  • go install github.com/elC0mpa/aws-doctor@latest
  • --profile: Specify the AWS profile to use (default is "").
  • --region: Specify the AWS region to use (default is "us-east-1").
  • --trend: Shows a trend analysis for the last 6 months.
  • --waste: Makes an analysis of possible money waste you have in your AWS Account.

Roadmap

[x] Add monthly trend analysis.

[x] Add waste/waste analysis logic.

[ ] Export reports to CSV and PDF formats (Medical records for your cloud).

[ ] Distribute the CLI in Fedora, Ubuntu, and macOS repositories.

联系我们 contact @ memedata.com