Frequently asked
questions
Everything you need to know about migrating to Stategraph and how it works.
Migration & Setup
No. With Orchestration, your state stays in your own backend, such as S3, GCS, or Azure Storage. Infrastructure as a Database replaces that backend with PostgreSQL. It comes in the Pro + Infrastructure as a Database plan, from $25,000 a year. It also runs under your existing CI. See pricing and editions.
You don't rewrite resources. Your Terraform/OpenTofu configurations, modules, and providers carry over. Orchestration runs them from pull requests against the state backend you have. Infrastructure as a Database imports your state into PostgreSQL, and some repo shapes need changes before that import is clean. The compatibility reference maps what carries over command by command, and stategraph diagnostics tells you where your specific repo stands.
Orchestration
Plans and applies run as jobs on your GitHub Actions or GitLab CI runners, so your cloud credentials stay there. Orchestration starts the runs and records the results. To run the jobs on machines you control, use self-hosted runners. See Private runners.
Orchestration works with GitHub and GitLab. It runs Terraform, OpenTofu, Terragrunt, Pulumi, or CDKTF, and a custom engine runs other tools. Any cloud or service with a Terraform provider works. See Choosing an engine.
Apply requirements set what a pull request needs before an apply, such as approvals, passing status checks, and no merge conflicts. Access control gives plan and apply rights to GitHub or GitLab users, teams, or repository roles, per tag query, such as a directory. Access control and CODEOWNERS enforcement are in Orchestration Pro and every Stategraph Cloud plan. See Role-based access control.
Yes. By default, you comment stategraph apply on the pull request, and Orchestration applies the plan you reviewed before the merge. To apply when the pull request merges instead, set when_modified.autoapply: true in .stategraph/config.yml. See Pull request workflow.
Yes. On a schedule, Orchestration runs a plan against the directories and workspaces in your repository. When it finds drift, it can open a GitHub or GitLab issue, or apply the plan to reconcile. See Drift detection.
Each migration guide has a script that writes .stategraph/config.yml from your current setup and reports what to resolve by hand. For Terraform Cloud, Spacelift, and env0, the script also moves your state to a bucket backend or to Infrastructure as a Database. You then roll out on a pull request. See Migration.
Availability & Access
Sign up at app.stategraph.cloud and connect GitHub or GitLab. New accounts start on Orchestration Pro for 30 days, with no credit card. When the trial ends, you move to the Free plan with every feature, at lower usage limits. Infrastructure as a Database has its own 30-day trial. To run Orchestration yourself, see self-hosting. See pricing for the plans.
Yes: Stategraph Cloud, at app.stategraph.cloud. The Free tier runs on shared-tenant SaaS so you can get started instantly. Infrastructure as a Database runs on single-tenant SaaS, with your own isolated instance and Postgres database. Orchestration Pro also runs self-hosted. Infrastructure as a Database can also self-host or run BYOC (Bring Your Own Cloud), where we operate Stategraph inside your AWS, GCP, or Azure account.
Stategraph Orchestration is open source under MPL-2.0, and its source is on GitHub. Orchestration Pro and Infrastructure as a Database are commercial. See the license page for details.
Infrastructure as a Database
No, and that's deliberate. Tools that promise drop-in keep your state as the same JSON file and inherit its limits. Infrastructure as a Database replaces the file with a database, and that model is where the benefits come from: subgraph plans, parallel applies, SQL over your infrastructure. Fitting into that model is the work of migration. For most repos it's small; for some HCL patterns it takes configuration, and a few aren't covered yet. Coverage of Terraform's surface area grows every release. The compatibility reference is the command-by-command map of where it stands today.
Run stategraph diagnostics run from your root module. It evaluates your HCL locally and writes a trace of how Stategraph reads it. It needs no account, makes no API calls, and uploads nothing. It records structure rather than values, so it's safe to share. Send us the trace and we'll tell you exactly how your repo fits and what, if anything, needs to change before your first import. That's the whole first step of onboarding, and it means you know where you stand before you've committed to anything.
Infrastructure as a Database imports your existing .tfstate file on first run. Every resource, every attribute, every piece of metadata is preserved and migrated into the database. The import process is non-destructive, and you can always export back to standard .tfstate format if needed.
Yes. Infrastructure as a Database supports multiple state files in the same database. Each state file becomes a separate graph that can be queried independently or together. You can manage hundreds of environments, modules, or workspaces in a single database instance while maintaining complete isolation and dependency tracking across them.
Infrastructure as a Database is built with zero vendor lock-in. You can export your state to standard Terraform .tfstate format at any time using our CLI. Your infrastructure state is stored in PostgreSQL using a documented schema, not a proprietary format. Simply export your state, update your backend configuration to point back to S3/GCS/local, and continue using standard Terraform or OpenTofu. We believe you should have complete freedom to move your infrastructure data wherever you want, whenever you want.
Yes. Because importing is non-destructive and you can export back to standard .tfstate at any time, you can evaluate Infrastructure as a Database in parallel with your current workflow. A common pattern is to import your code and state, run it in plan mode against the same infrastructure, and keep your existing pipeline as the source of truth until you are confident. Running it this way, sometimes called shadow mode, lets you validate behavior on real infrastructure before you apply anything with it. If you decide to move forward, you cut over; if you do not, you export your state and continue with Terraform or OpenTofu.
Infrastructure as a Database builds a complete dependency graph of your resources and only parallelizes truly independent subgraphs. We enforce explicit barriers for dependencies and use transactional writes. If resources depend on each other, they run in order. If they don't, they run in parallel.
All state data is encrypted at rest (AES-256) and in transit (TLS 1.3). Provider credentials are never stored in state. Resource-level RBAC means teams only see what they need. Every access and modification is logged with full attribution.
Yes. Infrastructure as a Database provides state locking similar to Terraform's state lock mechanism. This prevents concurrent operations from corrupting state and ensures safe multi-user workflows. The database-native implementation offers more granular locking options than traditional file-based approaches.
Yes. Infrastructure as a Database supports the standard workflow of saving plan output files and applying them later. This enables review-and-approve workflows where plans can be generated, reviewed by team members, and then applied when approved, as with Terraform.
You need PostgreSQL 15 or later. Run it on your own infrastructure, use a managed service such as RDS or Cloud SQL, or run it locally for development. Any PostgreSQL instance can handle thousands of resources.
Terraform/OpenTofu's pg backend just stores the state file as a blob in PostgreSQL. Infrastructure as a Database actually parses and normalizes the state into a proper database schema. Every resource becomes a queryable entity with relationships, history, and ownership. The pg backend stores a file in a database. Infrastructure as a Database stores your infrastructure as one.
RIP .tfstate. Meet Stategraph.
Resource-level locking. Graph-based state. SQL queries on your infra.
Teams work in parallel. No more lock contention.
// Engineering updates only. Unsubscribe anytime.