CodefaceSource Control

Source Control

Connecting Git, publishing generated Terraform, and the CI pipeline Codeface sets up for you.

Updated November 20261 min read

Source Control connects Codeface to your Git provider so generated Terraform is published as real commits and pull requests in a repository you own — not kept only inside Codeface.

Connecting a provider

Open Settings → Source Control to connect your Git provider and choose the repository (and branch) Codeface should publish to. This can be configured per environment.

What gets published

Codeface publishes a fixed set of generated files per environment — the Terraform for your canvas, the backend.tf for your configured state backend, and a CI workflow that runs plan and apply. Files you maintain yourself in the same repository, outside what Codeface generates, are left untouched on every publish — see Hybrid Infrastructure.

The pull request workflow

  1. Make changes on the canvas (or through Import)
  2. Open a pull request — Codeface commits the generated Terraform and opens it against your configured branch
  3. Your team reviews the PR like any other code change
  4. Once merged (and approved, if your environment requires it), the generated CI workflow runs the apply

The generated CI pipeline

Codeface generates a CI workflow that runs Terraform plan and apply for you, using the cloud credentials and state backend configured for that environment. You don't have to hand-write or maintain this pipeline yourself — it's regenerated whenever the underlying configuration changes.

Permissions

Connecting source control and opening pull requests both require the Developer role or above on a Business account; connecting the integration itself (as opposed to opening PRs against an already-connected repo) requires Operator role or above. See Account Types & Roles.

Previous
Approvals
Next
State & Backends