State & Backends
Codeface never stores your Terraform state. Here's how to point it at state you own.
Codeface never copies your state
Codeface writes a backend.tf file and never stores or copies your Terraform state itself. Your state stays in a backend you own, and your cloud credentials stay in your own CI — Codeface only ever points at where your state already lives.

Supported backends
| Backend | What you'll need |
|---|---|
| AWS S3 | A state bucket (and optionally a DynamoDB table for locking) in your own AWS account |
| Azure Blob Storage | A resource group, storage account, and container in your own subscription |
| Google Cloud Storage | A state bucket in your own GCP project |
| HCP Terraform | An organisation and workspace on HCP Terraform |
| HTTPS | Any generic HTTPS state service you authenticate from CI |
Configuring a backend
Open Settings → Backend for the environment you're configuring, choose a backend type, and fill in the fields for it. Codeface writes the resulting backend.tf alongside the rest of the generated Terraform for that environment.
One backend per environment
Each environment has its own backend configuration — Production, Staging, Sandbox, and any custom environments you've added each point at separate state, so a change in one can't collide with another. See Environments.
Before you open a production pull request
Codeface requires a valid backend configuration for an environment before a pull request can be opened against it — this is a safety check to make sure Production is never applied against unmanaged state.