SQL over everything you run
Stategraph stores state as normalized tables in PostgreSQL. Every resource in every state answers to one query, and gap analysis finds what no state manages.
Infrastructure as a Database
The inventory is the state
Schema
Your state is already a database
A state file is JSON you grep. Stategraph keeps resources, instances, states, providers, and cost snapshots in tables you can list with one command.
SQL inventory →Real output captured from a live Stategraph instance.
Query
Every state in one query
One question means stitching a dozen tfstate files. One SELECT spans every state and workspace, live, with nothing exported.
Query docs →Real output captured from a live Stategraph instance.
Attributes
A compliance check is a WHERE clause
Every attribute of every instance is queryable JSONB. A public bucket, an instance type, or any other attribute is one filter across all states.
SQL syntax reference →Illustrative query and result.
Gap analysis
Find what no state manages
Part of the cloud was made in the console and never imported. Gap analysis compares your AWS or GCP account with your states and writes the import blocks and HCL for the rest.
Gap analysis docs →Commands and output from the CLI reference. AWS and GCP today.
Dashboards
Save a query as a live view
A dashboard is a query you run often. Any query becomes a panel in the console, so inventory, cost, and ownership views need no glue code.
Dashboards docs →Illustrative. Each panel is a saved query.
Access
Console, API, or SQL
Instance explorer
Browse states and filter instances by type and state in the console, without writing SQL.
HTTP API
GET /api/v1/mql returns the same rows as JSON for your BI tool or scripts.
No export pipeline
Nothing to sync or schedule. The inventory is the state itself, read live.
Start Querying Your Infrastructure
Import your Terraform state files. Query resources with SQL. Understand your infrastructure in minutes.