AWS Builder Center

An API that reads my Terraform state and tells me what I'm doing wrong (and right)

An API that reads my Terraform state and tells me what I'm doing wrong (and right)

I've been managing AWS infrastructure with Terraform for a while now, and one pain point that never goes away is this: after spinning up a full environment — VPCs, subnets, security groups, IAM roles, S3, CloudFront, RDS, Lambda — I have no fast way to step back and ask "does this actually look like a well-architected system?" Right now, that answer requires me to either manually draw out a diagram in draw.io, run AWS Trusted Advisor and piece together its scattered findings, or pay for a third-party tool that still doesn't understand my Terraform structure natively. What I wish existed is simple: give me an API endpoint where I can POST my terraform.tfstate (or a CloudFormation stack name, or just a list of AWS account resources via Config/Organizations), and get back: A visual reference architecture diagram showing my actual topology — VPCs, AZs, subnets, gateways, the works A Well-Architected alignment report that flags things like: missing private subnet separation, NAT gateway not in use, overly permissive IAM policies, S3 buckets without CloudFront or bucket policies, no Multi-AZ on RDS Suggested blueprint alternatives — "your setup resembles a 3-tier web app, here's the AWS recommended pattern, here's the delta" The closest things today are AWS Config + Security Hub + Trusted Advisor, but they don't compose into a single coherent architecture view, and none of them speak Terraform natively. This would be a game changer for team onboarding, architecture reviews, and compliance prep — without requiring a dedicated solutions architect every time someone pushes a new module. Would love to know if others are solving this with custom tooling or if there's something in the ecosys
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article