Environments
How Production, Staging, and Sandbox work, and how to add your own.
Codeface organizes infrastructure into environments — isolated workspaces that each get their own canvas, Terraform output, state backend, and cloud connection.
Default environments
Every workspace starts with three environments:
| Environment | Typical use |
|---|---|
| Production | Your live, customer-facing infrastructure |
| Staging | A pre-production environment for validating changes |
| Sandbox | A low-stakes environment for experimentation |
Adding an environment
Open Settings → Environments to create additional environments beyond the defaults. Each new environment gets its own:
- Canvas (starts empty, or can be copied from an existing environment)
- Terraform state backend configuration
- Cloud account connection
- Role scope (Business accounts can restrict which members can access it)
Switching environments
Use the environment switcher in the app header to move between environments. The canvas, Terraform view, drift results, and approvals you see are always scoped to the environment currently selected.
Environment-scoped access
On a Business account, a member's role can be limited to specific environments. A Developer scoped to Staging and Sandbox, for example, has no access at all to Production — not even read-only. See Account Types & Roles.
Why environments matter for state and credentials
Each environment is expected to point at its own state backend and its own cloud account connection — Codeface does not share state or credentials across environments. This keeps a mistake in Sandbox from being able to touch Production. See State & Backends and Cloud Accounts.