When you inherit an AWS account nobody documented, the first week usually goes into clicking through CloudWatch, Billing, Cost Explorer, IAM, and CloudTrail trying to answer four basic questions: what is running, what depends on what, what is actually unused, and why the monthly bill looks the way it does.
Standard monitoring tools rarely help during that first week. On a busy account, Auto Scaling alarms outnumber real incidents a hundred to one, and generic price calculators do not match what ended up on last month's invoice.
So we built InfraLens — a single Go binary that runs locally on your machine with your own credentials, strictly read-only, and produces a report you can hand to a team or a client.
Three layers joined in one scan
./infralens demo --out demo # inspect a built-in synthetic example without AWS ./infralens serve # local web UI on http://127.0.0.1:8765/ ./infralens scan --profile prod # scan one account from the terminal ./infralens audit --profile prod --client "ACME" --out acme/ Instead of treating infrastructure, billing, and security as separate tabs, InfraLens joins them:
- Infrastructure and IaC drift — what exists, how resources connect, who owns them, and whether they match your Terraform or CloudFormation state.
- Real cost from the bill — resource pricing pulled from last month's actual AWS bill rather than list prices.
- Security context — lightweight built-in checks combined with whatever AWS Security Hub, Trusted Advisor, and Prowler already reported.
An LLM can summarize the findings in plain English, but it never invents numbers or touches your AWS account.
Problem Monitor: an empty screen when things are quiet
We also added a live Problem Monitor (/live or infralens serve --monitor PROFILE) meant for a second screen. It only draws what is broken right now.
For AWS, it polls cheap, read-only endpoints every 30–60 seconds: CloudWatch alarms in ALARM (ignoring Auto Scaling noise), ECS services below desired count, unhealthy target groups, RDS/Aurora issues, growing dead-letter queues, and open AWS Health events.
For Kubernetes, it judges workloads rather than individual pods. A Deployment with all replicas ready stays quiet even if a pod restarted four months ago. On a 500-pod cluster, that turns hundreds of rows into the handful of workloads that actually need attention.
The Kubernetes client rejects every request that is not a GET, with no access to Secrets or ConfigMaps (infralens policy --k8s prints the exact read-only ClusterRole).
Try it or book an audit
- Source & binaries (Apache-2.0): https://github.com/mosidze/infralens
- Fixed-price read-only AWS audit (written report in 5–7 working days): https://ecix.ee/audit/
- Our 23-chapter book on bare-metal Kubernetes and AI guardrails (Don't Trust. Don't Fear. Don't Beg): https://www.amazon.com/dp/B0HNGT7GR7