Terraform state in structured tables
Store your Terraform state in PostgreSQL with complete transaction history. Drop-in HTTP backend compatible with Terraform and OpenTofu. Full audit trail of every change.
HTTP Backend Protocol
Implements the Terraform HTTP backend protocol. Drop-in replacement that works with any Terraform or OpenTofu version. No code changes required.
PostgreSQL Storage
State stored in PostgreSQL with ACID transactions. Use familiar tooling for backup and replication. Scales to handle large state files efficiently.
Transaction History
Every state change recorded with who made it, when, and what changed. Complete audit trail with point-in-time recovery capability.
How It Works
Stategraph sits between Terraform and PostgreSQL, providing a standards-compliant HTTP backend.
- Terraform requests state - GET request retrieves current state
- Terraform pushes state - POST request with updated state
- Stategraph processes - Parses state, extracts resources, updates indexes
- PostgreSQL stores - Atomic write of state and metadata
Complete Transaction History
Every state change is recorded. See who made changes, when, and exactly what was modified.
Point-in-time recovery: Restore state to any previous transaction. Debug issues by seeing exactly what changed and when.
Why Use Stategraph Backend
With S3 or cloud storage backends, your state is just a blob. You lose it, you're in trouble. You can't see what changed over time. You can't audit who modified what.
Stategraph stores state in PostgreSQL with full transaction history. Every apply is recorded. Every change is auditable. And you control your own data.
The backend is completely free. Self-host it. Own your state data.
Get Started
Stop coordinating. Start shipping.
Resource-level locking. Graph-based state. SQL queries on your infra.
Teams work in parallel. No more lock contention.
// Zero spam. Just progress updates as we build Stategraph.