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.
[!TIP] View the full documentation, permissions guide, and usage examples at awsdoctor.compacompila.com



Supports selective scanning: aws-doctor waste ec2 s3 cloudwatch rds vpc lambda sagemaker elb ecr secrets-manager iam
aws-doctor automatically detects if it's being piped or redirected and gracefully falls back to static tables.aws-doctor can now generate detailed, professional PDF reports ready for stakeholders. Reports include branded headers, styled tables, and comprehensive cost/waste analyses.
[!TIP] View PDF reporting examples and details at awsdoctor.compacompila.com/docs/reporting/
aws-doctor report cost
# Full waste report
aws-doctor report waste
# Selective checks (e.g., ec2, s3, and lambda only)
aws-doctor report waste ec2 s3 lambda sagemaker
# Full trend report (all services)
aws-doctor report trend
# Selective services (e.g., ec2 and rds only)
aws-doctor report trend ec2 rds
[!TIP] Subcommand Arguments: Just like the terminal commands,
report wasteaccepts specific checks (e.g.,ec2,s3,rds,lambda) andreport trendaccepts specific service names.[!TIP] By default, reports are saved in your Documents folder. Use the
--pathflag to specify a custom directory or filename:aws-doctor report cost --path ./billing-analysis.pdf
Homebrew (macOS/Linux):
brew install elC0mpa/homebrew-tap/aws-doctor
One-Line Script (macOS/Linux):
curl -sSfL https://raw.githubusercontent.com/elC0mpa/aws-doctor/main/install.sh | sh
Windows (PowerShell):
irm https://raw.githubusercontent.com/elC0mpa/aws-doctor/main/install.ps1 | iex
Using Go:
go install github.com/elC0mpa/aws-doctor@latest
ec2, s3, elb, cloudwatch, rds, vpc, lambda, sagemaker, ecr, secrets-manager, iam).table, json, or csv for easy integration with other tools or reporting.pricing:GetProducts in the caller's IAM policy; without it, estimates silently fall back to defaults.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.
A huge thank you to everyone who has contributed to aws-doctor! Your help makes this tool better for everyone.
We love contributions! Whether it's a new detection rule or a bug fix, check our Community Dashboard to get started.
[!IMPORTANT] Always target your Pull Requests to the
developmentbranch. Themainbranch is reserved for production-ready releases. Check our Contributing Guidelines for more details.
$ claude mcp add aws-doctor \
-- python -m otcore.mcp_server <graph>