CodefaceState & Backends

State & Backends

Codeface never stores your Terraform state. Here's how to point it at state you own.

Updated November 20261 min read

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.

The Settings Backend tab configured with an AWS S3 state bucket, state key, region, and DynamoDB lock table

Supported backends

BackendWhat you'll need
AWS S3A state bucket (and optionally a DynamoDB table for locking) in your own AWS account
Azure Blob StorageA resource group, storage account, and container in your own subscription
Google Cloud StorageA state bucket in your own GCP project
HCP TerraformAn organisation and workspace on HCP Terraform
HTTPSAny 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.

Previous
Source Control
Next
Cloud Accounts